Skip to content

Commit 4576a93

Browse files
author
Marius Burkard
committed
Explode modules to array before checking
1 parent 2f044bd commit 4576a93

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

interface/web/dashboard/dashlets/databasequota.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function show() {
1111
return;
1212
}
1313

14-
$modules = $_SESSION['s']['user']['modules'];
14+
$modules = explode(',', $_SESSION['s']['user']['modules']);
1515
if (!in_array($modules, 'sites')) {
1616
return '';
1717
}

interface/web/dashboard/dashlets/quota.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function show() {
1111
return;
1212
}
1313

14-
$modules = $_SESSION['s']['user']['modules'];
14+
$modules = explode(',', $_SESSION['s']['user']['modules']);
1515
if (!in_array($modules, 'sites')) {
1616
return '';
1717
}

0 commit comments

Comments
 (0)