Don't process group if it is suppressed
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 26 Jan 2011 00:27:44 +0000 (17:27 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 26 Jan 2011 00:28:48 +0000 (17:28 -0700)
framework/Core/lib/Horde/Core/Prefs/Ui.php

index 70fd856..5dfc575 100644 (file)
@@ -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']);
     }