diff options
author | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-12-09 12:15:53 +0300 |
---|---|---|
committer | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-12-09 12:15:53 +0300 |
commit | e32048633041f05e4805a1639bd11b917c4f0dfb (patch) | |
tree | 2e88c2e3940083073e1409b8afbcf6916198c998 /plugins/Dashboard | |
parent | d0fafe8b8fa52163209a9179f16d6910af4e3050 (diff) |
Last try at json_decode
Diffstat (limited to 'plugins/Dashboard')
-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) { |