diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-02-03 15:26:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-03 15:26:31 +0100 |
commit | d0295750b9c07a22fcea2f8cfbcbf23c0132c1a4 (patch) | |
tree | 3550c8a121e034e3cd74e41e8a0125940e4b3579 /apps | |
parent | 8bf8074dc51a804c1bd94ac887682f3148666bd4 (diff) | |
parent | 020c2960b89ae01fe785460ca2f7a3d3b478124e (diff) | |
download | nextcloud-server-d0295750b9c07a22fcea2f8cfbcbf23c0132c1a4.tar.gz nextcloud-server-d0295750b9c07a22fcea2f8cfbcbf23c0132c1a4.zip |
Merge pull request #43282 from nextcloud/backport/42696/stable28
[stable28] fix(caldav): only call getTimestamp() on actual DateTime data
Diffstat (limited to 'apps')
-rw-r--r-- | apps/dav/lib/CalDAV/Status/StatusService.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/dav/lib/CalDAV/Status/StatusService.php b/apps/dav/lib/CalDAV/Status/StatusService.php index 24e929f9d0e..9dccd4e77a3 100644 --- a/apps/dav/lib/CalDAV/Status/StatusService.php +++ b/apps/dav/lib/CalDAV/Status/StatusService.php @@ -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; } } |