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:
-rw-r--r--core/WidgetsList.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/WidgetsList.php b/core/WidgetsList.php
index 057e85b165..ca974e0ce9 100644
--- a/core/WidgetsList.php
+++ b/core/WidgetsList.php
@@ -163,6 +163,10 @@ class WidgetsList
*/
static public function remove($widgetCategory, $widgetName = false)
{
+ if (!isset(self::$widgets[$widgetCategory])) {
+ return;
+ }
+
if (empty($widgetName)) {
unset(self::$widgets[$widgetCategory]);
return;