diff options
author | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-12-09 10:46:49 +0300 |
---|---|---|
committer | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-12-09 10:46:49 +0300 |
commit | e67e603945d31352f10b7013d05915709d523fb1 (patch) | |
tree | 064c5ee015cada2d29a2aaaa4ea4d0b78eb6582b /plugins/Dashboard | |
parent | 61a5016f99efafd745bb332fe7582e1afcb8e903 (diff) |
Fixing Notice: Undefined index: parameters in /plugins/Dashboard/Controller.php on line 143
Diffstat (limited to 'plugins/Dashboard')
-rw-r--r-- | plugins/Dashboard/Controller.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/plugins/Dashboard/Controller.php b/plugins/Dashboard/Controller.php index c778dab567..7cdb5f30b1 100644 --- a/plugins/Dashboard/Controller.php +++ b/plugins/Dashboard/Controller.php @@ -140,10 +140,12 @@ class Piwik_Dashboard_Controller extends Piwik_Controller { foreach($row as $widgetId => $widget) { - $pluginName = $widget['parameters']['module']; - if(!Piwik_PluginsManager::getInstance()->isPluginActivated($pluginName)) - { - unset($row[$widgetId]); + if(isset($widget->parameters->module)) { + $pluginName = $widget->parameters->module; + if(!Piwik_PluginsManager::getInstance()->isPluginActivated($pluginName)) + { + unset($row[$widgetId]); + } } } } |