From: Michael M Slusarz Date: Wed, 26 Jan 2011 00:27:44 +0000 (-0700) Subject: Don't process group if it is suppressed X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=50a1061cd466b75124c2abeb31db0657f629464f;p=horde.git Don't process group if it is suppressed --- diff --git a/framework/Core/lib/Horde/Core/Prefs/Ui.php b/framework/Core/lib/Horde/Core/Prefs/Ui.php index 70fd856c4..5dfc575df 100644 --- a/framework/Core/lib/Horde/Core/Prefs/Ui.php +++ b/framework/Core/lib/Horde/Core/Prefs/Ui.php @@ -125,6 +125,7 @@ class Horde_Core_Prefs_Ui } if ($this->group && + !in_array($this->group, $this->suppressGroups) && $registry->hasAppMethod($this->app, 'prefsGroup')) { $registry->callAppMethod($this->app, 'prefsGroup', array('args' => array($this))); } @@ -159,7 +160,7 @@ class Horde_Core_Prefs_Ui $group = $this->group; } - return empty($this->prefGroups[$group]['members']) + return (empty($this->prefGroups[$group]['members']) || in_array($this->group, $this->suppressGroups)) ? array() : $this->_getChangeablePrefs($this->prefGroups[$group]['members']); }