aboutsummaryrefslogtreecommitdiff
path: root/lib/filesystem
diff options
context:
space:
mode:
authorMoritz Strohm <strohm@data-quest.de>2023-08-02 15:25:25 +0200
committerMoritz Strohm <strohm@data-quest.de>2023-08-02 15:25:25 +0200
commit39ea4e180e305f4ce5cdd0110fa610d74cbd1cf6 (patch)
treef6a5f09285a79d3494ce3cda9690dcad2fcc0b85 /lib/filesystem
parent71194736c5989805257db7966c83863dc69db08c (diff)
fixed errorsbiest-02988
Diffstat (limited to 'lib/filesystem')
-rw-r--r--lib/filesystem/FileArchiveManager.class.php1
-rw-r--r--lib/filesystem/StandardFile.php2
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