Skip to content
Snippets Groups Projects
Unverified Commit 58da7c58 authored by Roeland Jago Douma's avatar Roeland Jago Douma Committed by GitHub
Browse files

Merge pull request #18301 from nextcloud/bugfix/noid/fix_array_access_on_non_array

Verify that  is an array before accessing it
parents b78a141b 0b1b12c8
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment