mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-30 18:49:24 +01:00
Calendar: Avoid type error if old_event was not loaded
This commit is contained in:
parent
62e35cd1c7
commit
c4a8996209
@ -1007,7 +1007,7 @@ class calendar_uiforms extends calendar_ui
|
|||||||
$response = Api\Json\Response::get();
|
$response = Api\Json\Response::get();
|
||||||
if($response && $update_type != 'delete' && !$client_updated)
|
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 : '');
|
$msg = $message . ($msg ? ', ' . $msg : '');
|
||||||
|
Loading…
Reference in New Issue
Block a user