Allow no prefGroups to be defined
authorMichael M Slusarz <slusarz@curecanti.org>
Mon, 12 Apr 2010 18:46:26 +0000 (12:46 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Mon, 12 Apr 2010 18:46:26 +0000 (12:46 -0600)
framework/Core/lib/Horde/Core/Prefs/Ui.php

index dc0b03b..ba04525 100644 (file)
@@ -613,7 +613,9 @@ class Horde_Core_Prefs_Ui
             return $res;
         }
 
-        $this->prefGroups = $res['prefGroups'];
+        $this->prefGroups = isset($res['prefGroups'])
+            ? $res['prefGroups']
+            : array();
         $this->prefs = $res['_prefs'];
 
         /* If there's only one prefGroup, just show it. */