diff options
author | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-12-09 12:16:52 +0300 |
---|---|---|
committer | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-12-09 12:16:52 +0300 |
commit | 7f5202bf93166358a90c46782eeff9fba528ec95 (patch) | |
tree | 2e88c2e3940083073e1409b8afbcf6916198c998 | |
parent | 426e0520339bc14bf0c40d7d6c1fdf4e0fe1d75b (diff) | |
parent | e32048633041f05e4805a1639bd11b917c4f0dfb (diff) |
-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 2e623863f1..40aafc0245 100644 --- a/plugins/Dashboard/Controller.php +++ b/plugins/Dashboard/Controller.php @@ -141,9 +141,10 @@ class Piwik_Dashboard_Controller extends Piwik_Controller protected function removeDisabledPluginFromLayout($layout) { + $layout = str_replace("\n", "", $layout); // if the json decoding works (ie. new Json format) // we will only return the widgets that are from enabled plugins - if($layoutObject = json_decode($layout, $assoc = true)) + if($layoutObject = json_decode($layout, $assoc = false)) { foreach($layoutObject as &$row) { |