diff options
Diffstat (limited to 'lib/filesystem/StandardFile.php')
| -rw-r--r-- | lib/filesystem/StandardFile.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/filesystem/StandardFile.php b/lib/filesystem/StandardFile.php index 4547d37..5723ef4 100644 --- a/lib/filesystem/StandardFile.php +++ b/lib/filesystem/StandardFile.php @@ -39,7 +39,7 @@ class StandardFile implements FileType, ArrayAccess, StandardFileInterface $mime_type = $data['type'] ?: get_mime_type($data['name']); $filesize = $data['size'] ?: filesize($data['tmp_name']); $file_path = $data['tmp_name']; - $error_code = $data['error']; + $error_code = $data['error'] ?? ''; if ($error_code) { //error handling |
