From: Georg Ehrke Date: Mon, 11 Jun 2012 19:43:24 +0000 (+0200) Subject: fix a bug in OC_Calendar_Repeat X-Git-Tag: v4.5.0beta1~74^2~407^2~33 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=08a3a4f1859851496d7cd975d7bc2b3256a998b1;p=nextcloud-server.git fix a bug in OC_Calendar_Repeat --- diff --git a/apps/calendar/lib/repeat.php b/apps/calendar/lib/repeat.php index 585fc560085..de13f1eb217 100644 --- a/apps/calendar/lib/repeat.php +++ b/apps/calendar/lib/repeat.php @@ -185,8 +185,8 @@ class OC_Calendar_Repeat{ $cachedevents = count(self::getcalendar($id)); $repeatingevents = 0; $allevents = OC_Calendar_Object::all($id); - foreach($allevents['repeating'] as $repeating){ - if($repeating === 1){ + foreach($allevents as $event){ + if($event['repeating'] === 1){ $repeatingevents++; } }