Calendar: small for loop fix

This commit is contained in:
Bart Visscher 2011-12-18 23:01:45 +01:00
parent 4eb36b0ecf
commit ff346ad135
1 changed files with 2 additions and 2 deletions

View File

@ -16,8 +16,8 @@ if(isset($cal)){
$calobjects = OC_Calendar_Object::all($cal); $calobjects = OC_Calendar_Object::all($cal);
header("Content-Type: text/Calendar"); header("Content-Type: text/Calendar");
header("Content-Disposition: inline; filename=calendar.ics"); header("Content-Disposition: inline; filename=calendar.ics");
for($i = 0;$i <= count($calobjects); $i++){ foreach($calobjects as $calobject){
echo $calobjects[$i]["calendardata"] . "\n"; echo $calobject["calendardata"] . "\n";
} }
}elseif(isset($event)){ }elseif(isset($event)){
$data = OC_Calendar_App::getEventObject($_GET["eventid"]); $data = OC_Calendar_App::getEventObject($_GET["eventid"]);