aboutsummaryrefslogtreecommitdiff
path: root/lib/classes/Interactable.class.php
diff options
context:
space:
mode:
authorDavid Siegfried <david.siegfried@uni-vechta.de>2023-03-13 13:36:29 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2023-03-13 13:36:29 +0000
commita2d286187f78642c907f902ed0c32506ee90a490 (patch)
treeb77642a70eb21fd860fc92a9ba60bed52923d3db /lib/classes/Interactable.class.php
parenta64695bcc12deafa8c1dd78a64f1785c145b41e4 (diff)
prevent php8 warnings, closes #2362
Closes #2362 Merge request studip/studip!1549
Diffstat (limited to 'lib/classes/Interactable.class.php')
-rw-r--r--lib/classes/Interactable.class.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/classes/Interactable.class.php b/lib/classes/Interactable.class.php
index 6ba7c25..9796f91 100644
--- a/lib/classes/Interactable.class.php
+++ b/lib/classes/Interactable.class.php
@@ -61,7 +61,7 @@ abstract class Interactable
$class = self::hyphenate(mb_substr($name, 6));
# a.) set name unless set
- if (!is_string(@$args[1])) {
+ if (empty($args[1]) || !is_string($args[1])) {
$interactable->attributes['name'] = $class;
}