Skip to content

Commit 60e884a

Browse files
author
Till Brehm
committed
Fixed #4291 dashboard
1 parent 23527d0 commit 60e884a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interface/web/dashboard/dashboard.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,13 +188,13 @@
188188
$dashlets_config[$role.'_dashlets_left'] = trim($dashlets_config[$role.'_dashlets_left']);
189189
$dashlets_config[$role.'_dashlets_right'] = trim($dashlets_config[$role.'_dashlets_right']);
190190

191-
if($dashlets_config[$role.'_dashlets_left'] != ''){
191+
if($dashlets_config[$role.'_dashlets_left'] != '' || $dashlets_config[$role.'_dashlets_right'] != ''){
192192
preg_match_all('@\[(.*?)\]@', $dashlets_config[$role.'_dashlets_left'], $matches);
193193
$leftcol_dashlets = $matches[1];
194194
} else {
195195
$leftcol_dashlets = $default_leftcol_dashlets;
196196
}
197-
if($dashlets_config[$role.'_dashlets_right'] != ''){
197+
if($dashlets_config[$role.'_dashlets_right'] != '' || $dashlets_config[$role.'_dashlets_left'] != ''){
198198
preg_match_all('@\[(.*?)\]@', $dashlets_config[$role.'_dashlets_right'], $matches);
199199
$rightcol_dashlets = $matches[1];
200200
} else {

0 commit comments

Comments
 (0)