From e3aef81959f9f60125936e053edde2aee718d317 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 24 Mar 2016 13:30:59 +0000 Subject: [PATCH] kope with not unserializable content in preferences stalling update --- phpgwapi/inc/class.preferences.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/phpgwapi/inc/class.preferences.inc.php b/phpgwapi/inc/class.preferences.inc.php index c6fe4b14cf..2a3a72efac 100644 --- a/phpgwapi/inc/class.preferences.inc.php +++ b/phpgwapi/inc/class.preferences.inc.php @@ -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) == '/') {