aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2026-02-19 10:23:11 +0100
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2026-02-19 10:23:11 +0100
commit6402c5e5d9ff370644bd2e5022f2e20af87870e9 (patch)
tree196c12993ad6239207740601e67efcafff344217 /app
parent1c52dc876a2a67548ab2be32ab834acfa6816395 (diff)
prevent warning, fixes #6253
Closes #6253 Merge request studip/studip!4728
Diffstat (limited to 'app')
-rw-r--r--app/views/shared/modul/_modul.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/shared/modul/_modul.php b/app/views/shared/modul/_modul.php
index afff494..b52ef23 100644
--- a/app/views/shared/modul/_modul.php
+++ b/app/views/shared/modul/_modul.php
@@ -35,11 +35,11 @@ $deskriptor = $modul->getDeskriptor($display_language ?? null);
<tbody>
<tr>
<td><strong><?= _('Modulbezeichnung') ?></strong></td>
- <td data-mvv-field="mvv_modul.bezeichnung"><?= htmlReady($title ?: $deskriptor->bezeichnung) ?></td>
+ <td data-mvv-field="mvv_modul.bezeichnung"><?= htmlReady(!empty($title) ? $title : $deskriptor->bezeichnung) ?></td>
</tr>
<tr>
<td><strong><?= _('Modulcode') ?></strong></td>
- <td data-mvv-field="mvv_modul.code"><?= htmlReady($code ?: $modul->code) ?></td>
+ <td data-mvv-field="mvv_modul.code"><?= htmlReady(!empty($code) ? $code : $modul->code) ?></td>
</tr>
<tr>
<td><strong><?= _('Semester der erstmaligen Durchführung') ?></strong></td>