projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76152d6
)
An Application might not have any prefs.
author
Michael J. Rubinsky
<mrubinsk@horde.org>
Tue, 16 Nov 2010 06:02:43 +0000
(
01:02
-0500)
committer
Michael 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
patch
|
blob
|
history
diff --git
a/framework/Prefs/lib/Horde/Prefs.php
b/framework/Prefs/lib/Horde/Prefs.php
index
c5cd30b
..
fae9e29
100644
(file)
--- 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;