aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/ical.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/ical.php')
-rw-r--r--app/controllers/ical.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/ical.php b/app/controllers/ical.php
index 06afc4d..4ecdc13 100644
--- a/app/controllers/ical.php
+++ b/app/controllers/ical.php
@@ -52,7 +52,8 @@ class iCalController extends StudipController
$GLOBALS['perm'] = new Seminar_Perm();
$extype = 'ALL_EVENTS';
- $export = new CalendarExport(new CalendarWriterICalendar());
+ $calender_writer = new CalendarWriterICalendar();
+ $export = new CalendarExport($calender_writer);
$export->exportFromDatabase($user_id, strtotime('-4 week'), 2114377200, 'ALL_EVENTS');
if ($GLOBALS['_calendar_error']->getMaxStatus(ErrorHandler::ERROR_CRITICAL)) {