From 60e884ac8f644b2f453a551bf6e7208e239c3429 Mon Sep 17 00:00:00 2001 From: Till Brehm <tbrehm@ispconfig.org> Date: Fri, 21 Oct 2016 18:50:28 +0200 Subject: [PATCH] Fixed #4291 dashboard --- interface/web/dashboard/dashboard.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interface/web/dashboard/dashboard.php b/interface/web/dashboard/dashboard.php index 6e2ec53f2e..4db446eb84 100644 --- a/interface/web/dashboard/dashboard.php +++ b/interface/web/dashboard/dashboard.php @@ -188,13 +188,13 @@ if($_SESSION["s"]["user"]["typ"] != 'admin' && !$app->auth->has_clients($_SESSIO $dashlets_config[$role.'_dashlets_left'] = trim($dashlets_config[$role.'_dashlets_left']); $dashlets_config[$role.'_dashlets_right'] = trim($dashlets_config[$role.'_dashlets_right']); -if($dashlets_config[$role.'_dashlets_left'] != ''){ +if($dashlets_config[$role.'_dashlets_left'] != '' || $dashlets_config[$role.'_dashlets_right'] != ''){ preg_match_all('@\[(.*?)\]@', $dashlets_config[$role.'_dashlets_left'], $matches); $leftcol_dashlets = $matches[1]; } else { $leftcol_dashlets = $default_leftcol_dashlets; } -if($dashlets_config[$role.'_dashlets_right'] != ''){ +if($dashlets_config[$role.'_dashlets_right'] != '' || $dashlets_config[$role.'_dashlets_left'] != ''){ preg_match_all('@\[(.*?)\]@', $dashlets_config[$role.'_dashlets_right'], $matches); $rightcol_dashlets = $matches[1]; } else { -- GitLab