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

fixes #3674

Closes #3674

Merge request studip/studip!2547
parent 0febc372
No related branches found
No related tags found
No related merge requests found
......@@ -358,7 +358,7 @@ class TreeAbstract {
*/
public function getParents($item_id)
{
if (!$this->tree_data[$item_id]) {
if (empty($this->tree_data[$item_id])) {
return [];
}
......
<?php
if (!$dates['regular']['turnus_data'] && empty($dates['irregular'])) {
if ($dates['ort'] && $show_room) {
if ($dates['ort'] && !empty($show_room)) {
echo htmlReady($dates['ort']);
} else {
echo _('Die Zeiten der Veranstaltung stehen nicht fest.');
......
......@@ -80,7 +80,7 @@ endforeach;
<? if (count($output) === 0) : ?>
<?= htmlReady($ort) ?: _('Keine Raumangabe') ?>
<?= empty($ort) ? _('Keine Raumangabe') : htmlReady($ort) ?>
<? else: ?>
<dl>
<? foreach ($output as $room_html => $dates) : ?>
......@@ -91,5 +91,5 @@ endforeach;
</dd>
<? endforeach ?>
<? endforeach ?>
</table>
</dl>
<? endif ?>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment