Skip to content

Commit 244e056

Browse files
author
Marius Burkard
committed
Wrong order of arguments for in_array
1 parent c8ddb95 commit 244e056

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
@@ -12,7 +12,7 @@ function show() {
1212
}
1313

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

interface/web/dashboard/dashlets/quota.php

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

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

0 commit comments

Comments
 (0)