If pref group doesn't exist, fallback to main app prefs screen.
authorMichael M Slusarz <slusarz@curecanti.org>
Mon, 13 Sep 2010 04:42:46 +0000 (22:42 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Mon, 13 Sep 2010 05:50:30 +0000 (23:50 -0600)
framework/Core/lib/Horde/Core/Prefs/Ui.php

index 480b84f..edbc1db 100644 (file)
@@ -354,6 +354,11 @@ class Horde_Core_Prefs_Ui
 
         if ($this->group) {
             $pref_list = $this->getChangeablePrefs($this->group);
+            if (empty($pref_list)) {
+                $this->group = '';
+                $this->generateUI();
+                return;
+            }
 
             /* Add necessary init stuff for identities pages. */
             if (isset($prefgroups[$this->group]['type']) &&