fix a bug in OC_Calendar_Repeat

This commit is contained in:
Georg Ehrke 2012-06-11 21:43:24 +02:00
parent 9edd40354e
commit 08a3a4f185
1 changed files with 2 additions and 2 deletions

View File

@ -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++;
}
}