An Application might not have any prefs.
authorMichael J. Rubinsky <mrubinsk@horde.org>
Tue, 16 Nov 2010 06:02:43 +0000 (01:02 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Tue, 16 Nov 2010 06:02:43 +0000 (01:02 -0500)
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

index c5cd30b..fae9e29 100644 (file)
@@ -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;