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 1d1889bf87
commit fb0c4d7db7

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;
}