From b6c29a054b0d422167d1012e99491c6c5b6bbd63 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 7 Dec 2016 14:16:52 +0100 Subject: [PATCH] fix PHP Warning (Invalid argument supplied for foreach() in calendar/inc/class.calendar_boupdate.inc.php on line 1915), if moved event has no alarms --- calendar/inc/class.calendar_so.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/inc/class.calendar_so.inc.php b/calendar/inc/class.calendar_so.inc.php index bbd41c16d5..b18dd5f26f 100644 --- a/calendar/inc/class.calendar_so.inc.php +++ b/calendar/inc/class.calendar_so.inc.php @@ -2328,7 +2328,7 @@ ORDER BY cal_user_type, cal_usre_id } } //error_log(__METHOD__."(".array2string($cal_id).") returning ".array2string($alarms)); - return $alarms; + return $alarms ? $alarms : array(); } /**