mirror of
https://github.com/nextcloud/server.git
synced 2026-05-25 02:34:12 -04:00
Merge pull request #43282 from nextcloud/backport/42696/stable28
[stable28] fix(caldav): only call getTimestamp() on actual DateTime data
This commit is contained in:
commit
d0295750b9
1 changed files with 1 additions and 2 deletions
|
|
@ -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…
Reference in a new issue