From 4576a9399b72ada407e0a7f86d793a4c11afd19d Mon Sep 17 00:00:00 2001 From: Marius Burkard Date: Sun, 20 Sep 2020 14:17:46 +0200 Subject: [PATCH] Explode modules to array before checking --- interface/web/dashboard/dashlets/databasequota.php | 2 +- interface/web/dashboard/dashlets/quota.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/interface/web/dashboard/dashlets/databasequota.php b/interface/web/dashboard/dashlets/databasequota.php index 8c5c360c23..ad2439e398 100644 --- a/interface/web/dashboard/dashlets/databasequota.php +++ b/interface/web/dashboard/dashlets/databasequota.php @@ -11,7 +11,7 @@ class dashlet_databasequota { return; } - $modules = $_SESSION['s']['user']['modules']; + $modules = explode(',', $_SESSION['s']['user']['modules']); if (!in_array($modules, 'sites')) { return ''; } diff --git a/interface/web/dashboard/dashlets/quota.php b/interface/web/dashboard/dashlets/quota.php index 8179e4ead5..443517b0bc 100644 --- a/interface/web/dashboard/dashlets/quota.php +++ b/interface/web/dashboard/dashlets/quota.php @@ -11,7 +11,7 @@ class dashlet_quota { return; } - $modules = $_SESSION['s']['user']['modules']; + $modules = explode(',', $_SESSION['s']['user']['modules']); if (!in_array($modules, 'sites')) { return ''; } -- GitLab