Skip to content
Snippets Groups Projects
Commit 9fb1d550 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

fixes #3186

Closes #3186

Merge request studip/studip!2572
parent eed0e88c
No related branches found
No related tags found
No related merge requests found
...@@ -243,8 +243,12 @@ class Calendar_ScheduleController extends AuthenticatedController ...@@ -243,8 +243,12 @@ class Calendar_ScheduleController extends AuthenticatedController
$this->render_template('calendar/schedule/_entry_course'); $this->render_template('calendar/schedule/_entry_course');
} else if ($id) { } else if ($id) {
$entry_columns = CalendarScheduleModel::getScheduleEntries($GLOBALS['user']->id, 0, 0, $id); $entry_columns = CalendarScheduleModel::getScheduleEntries($GLOBALS['user']->id, 0, 0, $id);
$entries = array_pop($entry_columns)->getEntries(); if (count($entry_columns) > 0) {
$this->show_entry = array_pop($entries); $entries = array_pop($entry_columns)->getEntries();
$this->show_entry = array_pop($entries);
} else {
$this->show_entry = null;
}
$this->render_template('calendar/schedule/_entry_schedule'); $this->render_template('calendar/schedule/_entry_schedule');
} }
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment