From 96ad0e6d5072bbe63146193bd45a684a07b8c9c1 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Sun, 12 Sep 2010 22:42:46 -0600 Subject: [PATCH] If pref group doesn't exist, fallback to main app prefs screen. --- framework/Core/lib/Horde/Core/Prefs/Ui.php | 5 +++++ 1 file changed, 5 insertions(+) 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']) && -- 2.11.0