From d43be3afc2904aa0e1b8299fe8546b4e5dbc0190 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 1c35c3884e..42dfcd12c7 100644 --- a/calendar/inc/class.calendar_so.inc.php +++ b/calendar/inc/class.calendar_so.inc.php @@ -2332,7 +2332,7 @@ ORDER BY cal_user_type, cal_usre_id } } //error_log(__METHOD__."(".array2string($cal_id).") returning ".array2string($alarms)); - return $alarms; + return $alarms ? $alarms : array(); } /**