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

This commit is contained in:
Ralf Becker 2016-12-07 14:16:52 +01:00
parent 8d59f4ee40
commit b6c29a054b

View File

@ -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();
}
/**