From: Michael M Slusarz Date: Mon, 13 Sep 2010 04:42:46 +0000 (-0600) Subject: If pref group doesn't exist, fallback to main app prefs screen. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=96ad0e6d5072bbe63146193bd45a684a07b8c9c1;p=horde.git If pref group doesn't exist, fallback to main app prefs screen. --- diff --git a/framework/Core/lib/Horde/Core/Prefs/Ui.php b/framework/Core/lib/Horde/Core/Prefs/Ui.php index 480b84fb7..edbc1db2c 100644 --- a/framework/Core/lib/Horde/Core/Prefs/Ui.php +++ b/framework/Core/lib/Horde/Core/Prefs/Ui.php @@ -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']) &&