Skip to content

Commit a65b051

Browse files
author
Till Brehm
committed
Merge branch '5747-nightly-in_array-expects-parameter-2-to-be-array' into 'develop'
Resolve "[Nightly] in_array() expects parameter 2 to be array" Closes #5747 See merge request ispconfig/ispconfig3!1253
2 parents c8ddb95 + 244e056 commit a65b051

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)