aboutsummaryrefslogtreecommitdiff
path: root/lib/filesystem/StandardFile.php
diff options
context:
space:
mode:
authorDavid Siegfried <david.siegfried@uni-vechta.de>2022-11-07 13:04:29 +0000
committerDavid Siegfried <david.siegfried@uni-vechta.de>2022-11-07 13:04:29 +0000
commita2a499c2d267561f1a445ffe02a8a5b5f96cf4c0 (patch)
treef2cb7075d9fdf8c262d1625b0471059f4e737fbb /lib/filesystem/StandardFile.php
parentcf4f0ddaa8a5e7e8380175c7d07402fa6ea3e8c5 (diff)
prevent php8-warning, closes #1750
Closes #1750 Merge request studip/studip!1139
Diffstat (limited to 'lib/filesystem/StandardFile.php')
-rw-r--r--lib/filesystem/StandardFile.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/filesystem/StandardFile.php b/lib/filesystem/StandardFile.php
index 05f6979..412600f 100644
--- a/lib/filesystem/StandardFile.php
+++ b/lib/filesystem/StandardFile.php
@@ -65,11 +65,11 @@ class StandardFile implements FileType, ArrayAccess, StandardFileInterface
$fileref = new FileRef();
$fileref['name'] = $filename;
- $fileref['description'] = $data['description'] ?: "";
+ $fileref['description'] = $data['description'] ?? "";
$fileref['downloads'] = 0;
$fileref['user_id'] = $user_id;
$fileref['file_id'] = $file->getId();
- $fileref['content_terms_of_use_id'] = $data['content_terms_of_use_id'] ?: ContentTermsOfUse::findDefault()->id;
+ $fileref['content_terms_of_use_id'] = $data['content_terms_of_use_id'] ?? ContentTermsOfUse::findDefault()->id;
return new static($fileref, $file);
}