summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/CalDAV/Reminder/NotificationProvider/PushProvider.php
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2020-06-04 11:08:20 +0200
committerThomas Citharel <tcit@tcit.fr>2020-06-04 11:25:36 +0200
commitb61b74e81af2677aa9ad037ba17d02644891fd34 (patch)
tree8c3749b9c988088b826fcc31191c018348576fa7 /apps/dav/lib/CalDAV/Reminder/NotificationProvider/PushProvider.php
parent395cd140b12c6c061f540606f2824b5b023db870 (diff)
downloadnextcloud-server-b61b74e81af2677aa9ad037ba17d02644891fd34.tar.gz
nextcloud-server-b61b74e81af2677aa9ad037ba17d02644891fd34.zip
Fix empty event UUID reminder notifications
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'apps/dav/lib/CalDAV/Reminder/NotificationProvider/PushProvider.php')
-rw-r--r--apps/dav/lib/CalDAV/Reminder/NotificationProvider/PushProvider.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/dav/lib/CalDAV/Reminder/NotificationProvider/PushProvider.php b/apps/dav/lib/CalDAV/Reminder/NotificationProvider/PushProvider.php
index c6b796b2acb..688e5c3b106 100644
--- a/apps/dav/lib/CalDAV/Reminder/NotificationProvider/PushProvider.php
+++ b/apps/dav/lib/CalDAV/Reminder/NotificationProvider/PushProvider.php
@@ -95,8 +95,10 @@ class PushProvider extends AbstractProvider {
$eventDetails = $this->extractEventDetails($vevent);
$eventDetails['calendar_displayname'] = $calendarDisplayName;
$eventUUID = (string) $vevent->UID;
- // Empty Notification ObjectId will be catched by OC\Notification\Notification
- $eventUUIDHash = $eventUUID ? hash('sha256', $eventUUID, false) : '';
+ if (!$eventUUID) {
+ return;
+ };
+ $eventUUIDHash = hash('sha256', $eventUUID, false);
foreach ($users as $user) {
/** @var INotification $notification */