From 08a3a4f1859851496d7cd975d7bc2b3256a998b1 Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Mon, 11 Jun 2012 21:43:24 +0200 Subject: [PATCH] fix a bug in OC_Calendar_Repeat --- apps/calendar/lib/repeat.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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++; } } -- 2.39.5