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