From cbfb44e55111e7de04a11d3dc1bd733849dd5fe0 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 25 Nov 2015 09:01:14 +0000 Subject: [PATCH] Make sure the state is an array - Fix not working update script from commit 54367 --- calendar/setup/tables_update.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/setup/tables_update.inc.php b/calendar/setup/tables_update.inc.php index c75dc9e4db..7cce063ce7 100644 --- a/calendar/setup/tables_update.inc.php +++ b/calendar/setup/tables_update.inc.php @@ -2671,7 +2671,7 @@ function calendar_upgrade14_3_900() function calendar_upgrade14_3_901() { preferences::change_preference('calendar', '/^favorite_/', function($attr, $old_value, $owner) { - if($old_value['state']) + if($old_value['state'] && is_array($old_value['state'])) { unset($old_value['state']['date']); unset($old_value['state']['startdate']);