From: Michael M Slusarz Date: Mon, 12 Apr 2010 18:46:26 +0000 (-0600) Subject: Allow no prefGroups to be defined X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=3c283a9bd54c0c54771a468c31a873882528e3d5;p=horde.git Allow no prefGroups to be defined --- diff --git a/framework/Core/lib/Horde/Core/Prefs/Ui.php b/framework/Core/lib/Horde/Core/Prefs/Ui.php index dc0b03bc1..ba04525a8 100644 --- a/framework/Core/lib/Horde/Core/Prefs/Ui.php +++ b/framework/Core/lib/Horde/Core/Prefs/Ui.php @@ -613,7 +613,9 @@ class Horde_Core_Prefs_Ui return $res; } - $this->prefGroups = $res['prefGroups']; + $this->prefGroups = isset($res['prefGroups']) + ? $res['prefGroups'] + : array(); $this->prefs = $res['_prefs']; /* If there's only one prefGroup, just show it. */