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:15:53 +0300
committermatt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-12-09 12:15:53 +0300
commite32048633041f05e4805a1639bd11b917c4f0dfb (patch)
tree2e88c2e3940083073e1409b8afbcf6916198c998 /plugins/Dashboard
parentd0fafe8b8fa52163209a9179f16d6910af4e3050 (diff)
Last try at json_decode
Diffstat (limited to 'plugins/Dashboard')
-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)
{