From 244e0564ddb5cc1cef32fd8fc8e4fcf203c04ff3 Mon Sep 17 00:00:00 2001 From: Marius Burkard <m.burkard@pixcept.de> Date: Thu, 8 Oct 2020 08:36:57 +0200 Subject: [PATCH] Wrong order of arguments for in_array --- 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 ad2439e398..4b06599d1c 100644 --- a/interface/web/dashboard/dashlets/databasequota.php +++ b/interface/web/dashboard/dashlets/databasequota.php @@ -12,7 +12,7 @@ class dashlet_databasequota { } $modules = explode(',', $_SESSION['s']['user']['modules']); - if (!in_array($modules, 'sites')) { + if(!in_array('sites', $modules)) { return ''; } diff --git a/interface/web/dashboard/dashlets/quota.php b/interface/web/dashboard/dashlets/quota.php index 443517b0bc..f1c46051d1 100644 --- a/interface/web/dashboard/dashlets/quota.php +++ b/interface/web/dashboard/dashlets/quota.php @@ -12,7 +12,7 @@ class dashlet_quota { } $modules = explode(',', $_SESSION['s']['user']['modules']); - if (!in_array($modules, 'sites')) { + if(!in_array('sites', $modules)) { return ''; } -- GitLab