Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/Dashboard/Controller.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Dashboard/Controller.php b/plugins/Dashboard/Controller.php
index 0ee2d6f8c0..fc800e4919 100644
--- a/plugins/Dashboard/Controller.php
+++ b/plugins/Dashboard/Controller.php
@@ -22,7 +22,8 @@ class Piwik_Dashboard_Controller extends Piwik_Controller
$view = new Piwik_View($template);
$this->setGeneralVariablesView($view);
$layout = html_entity_decode($this->getLayout());
- if(strstr($layout, '[[') == false) {
+ if(!empty($layout)
+ && strstr($layout, '[[') == false) {
$layout = "'$layout'";
}
$view->layout = $layout;