kope with not unserializable content in preferences stalling update

This commit is contained in:
Ralf Becker 2016-03-24 13:30:59 +00:00
parent 273779be8f
commit e3aef81959

View File

@ -747,6 +747,7 @@ class preferences
foreach($db->select(self::TABLE, '*', $where, __LINE__, __FILE__) as $row)
{
$prefs = self::unserialize($row['preference_value']);
if (!is_array($prefs)) $prefs = array(); // would stall update otherwise
if ($name[0] == '/' && substr($name, -1) == '/')
{