Avoid type error while updating events if old_event is not found

This commit is contained in:
nathangray 2019-05-02 09:24:33 -06:00
parent b47f5a7f69
commit c8589b6439

View File

@ -1414,7 +1414,7 @@ class calendar_boupdate extends calendar_bo
// Update history
$tracking = new calendar_tracking($this);
if (empty($event['id']) && !empty($cal_id)) $event['id']=$cal_id;
$tracking->track($save_event, $old_event);
$tracking->track($save_event, (array)$old_event);
return $cal_id;
}