set a default in paramslist for shift_alarm parm 3 (timestamp) to avoid php-warning and comply to the function description

This commit is contained in:
Klaus Leithoff 2016-05-06 13:54:08 +00:00
parent 30158d1e8d
commit 7ab832fe9f

View File

@ -1696,7 +1696,7 @@ ORDER BY cal_user_type, cal_usre_id
* are dealing with, default is now. * are dealing with, default is now.
* @return boolean true if alarm could be shifted, false if not * @return boolean true if alarm could be shifted, false if not
*/ */
public static function shift_alarm(array $_event, array &$alarm, $timestamp) public static function shift_alarm(array $_event, array &$alarm, $timestamp=null)
{ {
if ($_event['recur_type'] == MCAL_RECUR_NONE) if ($_event['recur_type'] == MCAL_RECUR_NONE)
{ {