Browse Source
Verify that is an array before accessing it
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
pull/18301/head
Georg Ehrke
6 years ago
No known key found for this signature in database
GPG Key ID: 9D98FD9380A1CB43
1 changed files with
4 additions and
2 deletions
-
apps/dav/lib/CalDAV/CalDavBackend.php
|
|
|
@ -445,7 +445,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription |
|
|
|
|
|
|
|
return $this->userDisplayNames[$uid]; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* @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->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); |
|
|
|
} |
|
|
|
|