Skip to content
Snippets Groups Projects
Commit be6111f3 authored by David Siegfried's avatar David Siegfried
Browse files

prevent php8-warnings, closes #3170

Closes #3170

Merge request studip/studip!2147
parent a3d5dec9
No related branches found
No related tags found
No related merge requests found
......@@ -74,7 +74,8 @@ class Course_EnrolmentController extends AuthenticatedController
$this->relocate(URLHelper::getLink('dispatch.php/course/details', ['sem_id' => $this->course_id]));
return;
}
$this->admission_error = '';
$this->admission_form = '';
$this->course = Course::find($this->course_id);
try {
......
......@@ -17,7 +17,7 @@
</div>
<?= CSRFProtection::tokenTag() ?>
</form>
<? elseif ($priocourses): ?>
<? elseif (!empty($priocourses)): ?>
<form name="claim_admission" action="<?= $controller->action_link("claim/{$course_id}") ?>" method="post" class="default">
<? if (is_array($priocourses)): ?>
<?= $this->render_partial('course/enrolment/_priocourses.php') ?>
......
......@@ -44,7 +44,7 @@
<th><?= _('Name') ?></th>
<td><?= htmlReady($course['name']) ?></td>
</tr>
<? if ($course['untertitel']): ?>
<? if (!empty($course['untertitel'])): ?>
<tr>
<th><?= _('Untertitel') ?></th>
<td><?= htmlReady($course['untertitel']) ?></td>
......@@ -77,7 +77,7 @@
</table>
<br><br>
<? if ($course['children']) : ?>
<? if (!empty($course['children'])) : ?>
<?= $this->render_partial('my_courses/_exportcourse', [
'course_collection' => $course['children'],
'children' => true,
......
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