Merge pull request #42696 from nextcloud/fix-issue-42464

fix(caldav): only call getTimestamp() on actual DateTime data
pull/42811/head
Christoph Wurst 4 months ago committed by GitHub
commit 50fffa8d95
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -106,8 +106,7 @@ class StatusService {
if (isset($component['DTSTART']) && $userStatusTimestamp !== null) {
/** @var DateTimeImmutable $dateTime */
$dateTime = $component['DTSTART'][0];
$timestamp = $dateTime->getTimestamp();
if($userStatusTimestamp > $timestamp) {
if($dateTime instanceof DateTimeImmutable && $userStatusTimestamp > $dateTime->getTimestamp()) {
return false;
}
}

Loading…
Cancel
Save