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 fbba0f2e59
commit d43be3afc2

View File

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