diff options
Diffstat (limited to 'lib/filesystem')
| -rw-r--r-- | lib/filesystem/FileArchiveManager.class.php | 1 | ||||
| -rw-r--r-- | lib/filesystem/StandardFile.php | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/filesystem/FileArchiveManager.class.php b/lib/filesystem/FileArchiveManager.class.php index f18bea0..498bb58 100644 --- a/lib/filesystem/FileArchiveManager.class.php +++ b/lib/filesystem/FileArchiveManager.class.php @@ -858,7 +858,6 @@ class FileArchiveManager $file_dir = pathinfo($studip_file->getPath(), PATHINFO_DIRNAME); $file_path = $file_dir . '/' . $studip_file->id; - var_dump($file_dir); // Create the directory for the file, if necessary: if (!is_dir($file_dir)) { mkdir($file_dir); 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 |
