mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
Calendar: Avoid type error if old_event was not loaded
This commit is contained in:
parent
cbe32069c2
commit
149cdaeae0
@ -1007,7 +1007,7 @@ class calendar_uiforms extends calendar_ui
|
||||
$response = Api\Json\Response::get();
|
||||
if($response && $update_type != 'delete' && !$client_updated)
|
||||
{
|
||||
$client_updated = $this->update_client($event['id'], null, $old_event);
|
||||
$client_updated = $this->update_client($event['id'], null, is_array($old_event) ? $old_event : []);
|
||||
}
|
||||
|
||||
$msg = $message . ($msg ? ', ' . $msg : '');
|
||||
|
Loading…
Reference in New Issue
Block a user