From feec8993373dc82c26b3c75a939aa67391625cbe Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 17 Oct 2017 16:12:26 +0200 Subject: [PATCH] fix (unexplained) infinit loop in phpUnit tests under PHP 5.6 --- calendar/inc/class.calendar_so.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/calendar/inc/class.calendar_so.inc.php b/calendar/inc/class.calendar_so.inc.php index ede53fb0d4..dc6d090783 100644 --- a/calendar/inc/class.calendar_so.inc.php +++ b/calendar/inc/class.calendar_so.inc.php @@ -1369,11 +1369,11 @@ ORDER BY cal_user_type, cal_usre_id } // add colum prefix 'cal_' if there's not already a 'recur_' prefix - foreach($event as $col => $val) + foreach(array_keys($event) as $col) { if ($col[0] != '#' && substr($col,0,6) != 'recur_' && substr($col,0,6) != 'range_' && $col != 'alarm' && $col != 'tz_id' && $col != 'caldav_name') { - $event['cal_'.$col] = $val; + $event['cal_'.$col] = $event[$col]; unset($event[$col]); } }