From 147feb24b18a495b566e41c4bb0790fab1a6ac9e Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Tue, 16 Nov 2010 01:02:43 -0500 Subject: [PATCH] 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. --- framework/Prefs/lib/Horde/Prefs.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.11.0