mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-28 16:59:36 +01:00
Avoid type error while updating events if old_event is not found
This commit is contained in:
parent
1d1889bf87
commit
fb0c4d7db7
@ -1414,7 +1414,7 @@ class calendar_boupdate extends calendar_bo
|
|||||||
// Update history
|
// Update history
|
||||||
$tracking = new calendar_tracking($this);
|
$tracking = new calendar_tracking($this);
|
||||||
if (empty($event['id']) && !empty($cal_id)) $event['id']=$cal_id;
|
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;
|
return $cal_id;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user