diff options
| author | Moritz Strohm <strohm@data-quest.de> | 2023-08-02 15:25:25 +0200 |
|---|---|---|
| committer | Moritz Strohm <strohm@data-quest.de> | 2023-08-02 15:25:25 +0200 |
| commit | 39ea4e180e305f4ce5cdd0110fa610d74cbd1cf6 (patch) | |
| tree | f6a5f09285a79d3494ce3cda9690dcad2fcc0b85 /lib/filesystem/StandardFile.php | |
| parent | 71194736c5989805257db7966c83863dc69db08c (diff) | |
fixed errorsbiest-02988
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 |
