From: Michael J. Rubinsky Date: Tue, 16 Nov 2010 06:02:43 +0000 (-0500) Subject: An Application might not have any prefs. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=147feb24b18a495b566e41c4bb0790fab1a6ac9e;p=horde.git An Application might not have any prefs. Not sure if this is the 100% correct fix, but it fixes numerous fatal errors from applications (like timeobjects or content) not having prefs. --- diff --git a/framework/Prefs/lib/Horde/Prefs.php b/framework/Prefs/lib/Horde/Prefs.php index c5cd30b0c..fae9e29a2 100644 --- a/framework/Prefs/lib/Horde/Prefs.php +++ b/framework/Prefs/lib/Horde/Prefs.php @@ -351,7 +351,10 @@ class Horde_Prefs implements ArrayAccess $scope_ob->init = true; foreach ($this->_storage as $storage) { - $scope_ob = $storage->get($scope_ob); + $value = $storage->get($scope_ob); + if (!$value) { + break; + } } $scope_ob->init = false;