Skip to content

Commit 249c2ab

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!1188
2 parents be3560e + 4576a93 commit 249c2ab

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)