diff options
author | Bart Visscher <bartv@thisnet.nl> | 2011-12-18 23:01:45 +0100 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2011-12-18 23:10:43 +0100 |
commit | ff346ad1352ba5f99e409e2e1efca8a3e356af31 (patch) | |
tree | 71d26fc917a3e67291d52cd583cec2c6f6a1f75d /apps/calendar/export.php | |
parent | 4eb36b0ecf40266ceb2abf0f5bc17dad4bde6951 (diff) | |
download | nextcloud-server-ff346ad1352ba5f99e409e2e1efca8a3e356af31.tar.gz nextcloud-server-ff346ad1352ba5f99e409e2e1efca8a3e356af31.zip |
Calendar: small for loop fix
Diffstat (limited to 'apps/calendar/export.php')
-rw-r--r-- | apps/calendar/export.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/calendar/export.php b/apps/calendar/export.php index 5fbd2533ab5..9b3ea5005d6 100644 --- a/apps/calendar/export.php +++ b/apps/calendar/export.php @@ -16,8 +16,8 @@ if(isset($cal)){ $calobjects = OC_Calendar_Object::all($cal); header("Content-Type: text/Calendar"); header("Content-Disposition: inline; filename=calendar.ics"); - for($i = 0;$i <= count($calobjects); $i++){ - echo $calobjects[$i]["calendardata"] . "\n"; + foreach($calobjects as $calobject){ + echo $calobject["calendardata"] . "\n"; } }elseif(isset($event)){ $data = OC_Calendar_App::getEventObject($_GET["eventid"]); |