diff options
-rw-r--r-- | core/WidgetsList.php | 4 |
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; |