aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/blubber.php
diff options
context:
space:
mode:
authorDavid Siegfried <david.siegfried@uni-vechta.de>2024-11-05 09:48:54 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2024-11-05 09:48:54 +0000
commit5e4964cef121f35e93e85c1e2101e55b8077935d (patch)
tree6d469d63e9ecf883868e63a90027628f93a06244 /app/controllers/blubber.php
parent31480dbdf30e1b656ea702604f142aa5ee531da2 (diff)
prevent php-warnings, fixes #4823
Closes #4823 Merge request studip/studip!3608
Diffstat (limited to 'app/controllers/blubber.php')
-rw-r--r--app/controllers/blubber.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/controllers/blubber.php b/app/controllers/blubber.php
index d206a4a..8ede39e 100644
--- a/app/controllers/blubber.php
+++ b/app/controllers/blubber.php
@@ -270,8 +270,6 @@ class BlubberController extends AuthenticatedController
$output = [];
foreach ($_FILES as $file) {
- $file_ref = null; //is also filled below
-
if ($file['size']) {
$document['user_id'] = $GLOBALS['user']->id;
$success = false;
@@ -354,7 +352,7 @@ class BlubberController extends AuthenticatedController
if ($type) {
$output['inserts'][] = "[{$type}]{$url}";
} else {
- $output['inserts'][] = "[{$file_ref['name']}]{$url}";
+ $output['inserts'][] = "[{$file['name']}]{$url}";
}
}
}