forked from extern/egroupware
Avoid errors if $instance_date is not passed correctly
(thanks, Scrutenizer)
This commit is contained in:
parent
71ffd661ac
commit
5946e9f7cd
@ -1920,7 +1920,7 @@ class calendar_boupdate extends calendar_bo
|
||||
|
||||
foreach($event['alarm'] as &$alarm)
|
||||
{
|
||||
if($event['recur_type'] != MCAL_RECUR_NONE)
|
||||
if($event['recur_type'] != MCAL_RECUR_NONE && is_object($instance_date))
|
||||
{
|
||||
calendar_so::shift_alarm($event, $alarm, $instance_date->format('ts'));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user