diff --git a/calendar/inc/class.calendar__.inc.php b/calendar/inc/class.calendar__.inc.php index 9c253b4c25..a88c7ba0e5 100755 --- a/calendar/inc/class.calendar__.inc.php +++ b/calendar/inc/class.calendar__.inc.php @@ -79,10 +79,13 @@ class calendar__ $tz_offset = ((60 * 60) * intval($temp_tz_offset)); - $t_old_start_time = mktime($old_event->start->hour,$old_event->start->min,$old_event->start->sec,$old_event->start->month,$old_event->start->mday,$old_event->start->year); - if($t_old_start_time < (time() - 86400)) + if($old_event != False) { - return False; + $t_old_start_time = mktime($old_event->start->hour,$old_event->start->min,$old_event->start->sec,$old_event->start->month,$old_event->start->mday,$old_event->start->year); + if($t_old_start_time < (time() - 86400)) + { + return False; + } } $temp_user = $phpgw_info['user'];