aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2019-08-18 20:56:57 +0200
committerGeorg Ehrke <developer@georgehrke.com>2019-08-18 20:56:57 +0200
commit6f66fba559377d257be07c9a5f13db58bbc39b09 (patch)
tree95c4719d77ea6e2a482cbfe7466c1ad0725f83fd /apps/dav/lib
parent08a61f3373d00b144be668d50b756e313cb4b5c3 (diff)
downloadnextcloud-server-6f66fba559377d257be07c9a5f13db58bbc39b09.tar.gz
nextcloud-server-6f66fba559377d257be07c9a5f13db58bbc39b09.zip
fix foreach error for reminder generator
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to 'apps/dav/lib')
-rw-r--r--apps/dav/lib/CalDAV/Reminder/ReminderService.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/dav/lib/CalDAV/Reminder/ReminderService.php b/apps/dav/lib/CalDAV/Reminder/ReminderService.php
index f36ddd157cc..dd19c400720 100644
--- a/apps/dav/lib/CalDAV/Reminder/ReminderService.php
+++ b/apps/dav/lib/CalDAV/Reminder/ReminderService.php
@@ -196,6 +196,10 @@ class ReminderService {
foreach($recurrenceExceptions as $recurrenceException) {
$eventHash = $this->getEventHash($recurrenceException);
+ if (!isset($recurrenceException->VALARM)) {
+ continue;
+ }
+
foreach($recurrenceException->VALARM as $valarm) {
/** @var VAlarm $valarm */
$alarmHash = $this->getAlarmHash($valarm);
@@ -216,6 +220,10 @@ class ReminderService {
$masterAlarms = [];
$masterHash = $this->getEventHash($masterItem);
+ if (!isset($masterItem->VALARM)) {
+ return;
+ }
+
foreach($masterItem->VALARM as $valarm) {
$masterAlarms[] = $this->getAlarmHash($valarm);
}