diff options
author | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-05-06 05:04:53 +0400 |
---|---|---|
committer | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-05-06 05:04:53 +0400 |
commit | 6eed0fc3f958240b36728b679db379a19f8c04a9 (patch) | |
tree | 2a7d00122aefcddad928553aafc63a4a1108ebdb | |
parent | 84d63598e5692dc634382a5b76ea48f57a4ebab5 (diff) |
fixing dashboard not defined
-rw-r--r-- | plugins/Dashboard/Controller.php | 3 |
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; |