diff --git a/core/WidgetsList.php b/core/WidgetsList.php
index 057e85b16528f4f13157695d0f562a6b0c4a170d..ca974e0ce9cd0fb31c40b8aab5e618fc7c1e3361 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;