Verify that is an array before accessing it
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
This commit is contained in:
parent
bb8ac6ca34
commit
0b1b12c8a2
|
@ -445,7 +445,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
|
||||||
|
|
||||||
return $this->userDisplayNames[$uid];
|
return $this->userDisplayNames[$uid];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
|
@ -1238,7 +1238,9 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
|
||||||
$stmt = $this->db->prepare('DELETE FROM `*PREFIX*calendarobjects` WHERE `calendarid` = ? AND `uri` = ? AND `calendartype` = ?');
|
$stmt = $this->db->prepare('DELETE FROM `*PREFIX*calendarobjects` WHERE `calendarid` = ? AND `uri` = ? AND `calendartype` = ?');
|
||||||
$stmt->execute([$calendarId, $objectUri, $calendarType]);
|
$stmt->execute([$calendarId, $objectUri, $calendarType]);
|
||||||
|
|
||||||
$this->purgeProperties($calendarId, $data['id'], $calendarType);
|
if (is_array($data)) {
|
||||||
|
$this->purgeProperties($calendarId, $data['id'], $calendarType);
|
||||||
|
}
|
||||||
|
|
||||||
$this->addChange($calendarId, $objectUri, 3, $calendarType);
|
$this->addChange($calendarId, $objectUri, 3, $calendarType);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue