mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-04 20:40:14 +01:00
kope with not unserializable content in preferences stalling update
This commit is contained in:
parent
273779be8f
commit
e3aef81959
@ -747,6 +747,7 @@ class preferences
|
|||||||
foreach($db->select(self::TABLE, '*', $where, __LINE__, __FILE__) as $row)
|
foreach($db->select(self::TABLE, '*', $where, __LINE__, __FILE__) as $row)
|
||||||
{
|
{
|
||||||
$prefs = self::unserialize($row['preference_value']);
|
$prefs = self::unserialize($row['preference_value']);
|
||||||
|
if (!is_array($prefs)) $prefs = array(); // would stall update otherwise
|
||||||
|
|
||||||
if ($name[0] == '/' && substr($name, -1) == '/')
|
if ($name[0] == '/' && substr($name, -1) == '/')
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user