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:
authormatt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-12-09 12:16:52 +0300
committermatt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-12-09 12:16:52 +0300
commit7f5202bf93166358a90c46782eeff9fba528ec95 (patch)
tree2e88c2e3940083073e1409b8afbcf6916198c998
parent426e0520339bc14bf0c40d7d6c1fdf4e0fe1d75b (diff)
parente32048633041f05e4805a1639bd11b917c4f0dfb (diff)
-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 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)
{