diff options
| author | David Siegfried <david.siegfried@uni-vechta.de> | 2022-11-15 11:35:36 +0000 |
|---|---|---|
| committer | David Siegfried <david.siegfried@uni-vechta.de> | 2022-11-15 11:35:36 +0000 |
| commit | 90ada48fb04ebcacee431cdfb78f0a63d594ed09 (patch) | |
| tree | c32909d0f774d9ffdccd6bbaa6fc088294f2523c /lib/plugins/engine/PluginManager.class.php | |
| parent | b8cc064f443fb1ae4de35987d25c1618bcdb122e (diff) | |
prevent php8-warnings, closes #1770
Closes #1770
Merge request studip/studip!1148
Diffstat (limited to 'lib/plugins/engine/PluginManager.class.php')
| -rw-r--r-- | lib/plugins/engine/PluginManager.class.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/plugins/engine/PluginManager.class.php b/lib/plugins/engine/PluginManager.class.php index 7ced174..5873eb2 100644 --- a/lib/plugins/engine/PluginManager.class.php +++ b/lib/plugins/engine/PluginManager.class.php @@ -619,7 +619,7 @@ class PluginManager */ public function getPlugins ($type, $context = null) { - $user = $GLOBALS['user']->id ?: 'nobody'; + $user = $GLOBALS['user'] ? $GLOBALS['user']->id : 'nobody'; $plugin_info = $this->getPluginInfos($type); $plugins = []; |
