forked from extern/egroupware
additionally check prefs read from cache, if they are of type array, otherwise read them from db, might help with APC at least in some versions not seem to deal correctly with out-of-memory
This commit is contained in:
parent
078fa987d4
commit
c9074f936d
@ -160,7 +160,8 @@ class preferences
|
||||
foreach((array)$ids as $id)
|
||||
{
|
||||
$prefs[$id] = egw_cache::getInstance(__CLASS__, $id);
|
||||
if (!isset($prefs[$id])) $db_read[] = $id;
|
||||
// if prefs are not returned (null) or not an array, read them from db
|
||||
if (!isset($prefs[$id]) && !is_array($prefs[$id])) $db_read[] = $id;
|
||||
}
|
||||
if ($db_read)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user