diff options
| author | David Siegfried <david.siegfried@uni-vechta.de> | 2024-11-05 09:48:54 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+github@gmail.com> | 2024-11-05 13:55:59 +0100 |
| commit | 5f3e68a6439c3cc37599aede7132a545aa085f9f (patch) | |
| tree | b94323c15b2d31b9ea778406d82daa155bb68819 /templates | |
| parent | 80a4ff781018c8521242eefb92ae5a8065a4112b (diff) | |
prevent php-warnings, fixes #4823
Closes #4823
Merge request studip/studip!3608
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/courseware/block_types/document.php | 4 | ||||
| -rw-r--r-- | templates/dates/seminar_html_roomplanning.php | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/templates/courseware/block_types/document.php b/templates/courseware/block_types/document.php index d439170..76ef768 100644 --- a/templates/courseware/block_types/document.php +++ b/templates/courseware/block_types/document.php @@ -2,8 +2,8 @@ <p style="font-weight: bold;"><?= _('Dokument') . ': ' ?></p> <p> <?= _('Titel') . ' => ' . htmlReady($payload['title']) ?>, - <? if ($files[0]): ?> + <? if (!empty($files[0])): ?> <?= _('Datei') . '=>' ?> <a href="<?= htmlReady($files[0]->getDownloadURL()) ?>"><?= htmlReady($files[0]->name) ?></a> <? endif; ?> </p> -</div>
\ No newline at end of file +</div> diff --git a/templates/dates/seminar_html_roomplanning.php b/templates/dates/seminar_html_roomplanning.php index b758f40..decc8c0 100644 --- a/templates/dates/seminar_html_roomplanning.php +++ b/templates/dates/seminar_html_roomplanning.php @@ -49,7 +49,7 @@ if (!empty($dates['regular']['turnus_data']) || !empty($dates['irregular'])) : if (isset($dates['irregular']) && is_array($dates['irregular'])): foreach ($dates['irregular'] as $date) : - if (empty($with_past_intervals) && $date->end_time < $now) { + if (empty($with_past_intervals) && $date['end_time'] < $now) { continue; } $irregular[] = $date; |
