aboutsummaryrefslogtreecommitdiff
path: root/lib/plugins/engine/PluginManager.class.php
diff options
context:
space:
mode:
authorMoritz Strohm <strohm@data-quest.de>2022-05-04 14:18:41 +0000
committerMoritz Strohm <strohm@data-quest.de>2022-05-04 14:18:41 +0000
commit0d95625c2ab0eabe98e724ab79be0087093cc35b (patch)
treef911e16bfb52f4aceacf9e9ad4c8d31923e26a6e /lib/plugins/engine/PluginManager.class.php
parente1f835675363c17fbf5d269f6d1d1f84b6727886 (diff)
fix for BIESt #957
Merge request studip/studip!554
Diffstat (limited to 'lib/plugins/engine/PluginManager.class.php')
-rw-r--r--lib/plugins/engine/PluginManager.class.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/plugins/engine/PluginManager.class.php b/lib/plugins/engine/PluginManager.class.php
index 1745e50..ee5b43f 100644
--- a/lib/plugins/engine/PluginManager.class.php
+++ b/lib/plugins/engine/PluginManager.class.php
@@ -222,7 +222,7 @@ class PluginManager
$statement->execute([$userId]);
$this->plugins_activated_cache[$userId] = $statement->fetchGrouped(PDO::FETCH_COLUMN);
}
- $state = $this->plugins_activated_cache[$userId][$pluginId];
+ $state = $this->plugins_activated_cache[$userId][$pluginId] ?? null;
if ($state === null) {
$activated = (bool) Config::get()->HOMEPAGEPLUGIN_DEFAULT_ACTIVATION;
} else {
@@ -314,7 +314,7 @@ class PluginManager
*/
public function isPluginsDisabled()
{
- return $_SESSION['plugins_disabled'];
+ return $_SESSION['plugins_disabled'] ?? false;
}
/**