diff --git a/lib/classes/TreeAbstract.class.php b/lib/classes/TreeAbstract.class.php index 69fedce91cbe75aa7516fb31e42af8e9690a5fe4..ccdb6e11760b45195ae863bc354717b6e0e0e991 100644 --- a/lib/classes/TreeAbstract.class.php +++ b/lib/classes/TreeAbstract.class.php @@ -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 []; } diff --git a/templates/dates/seminar_html.php b/templates/dates/seminar_html.php index b91079a7b1811f7f8335eb0f96b0d161a46e7182..47aa0aa01c4a8bce52bbbe71d252a4a1860e9f46 100644 --- a/templates/dates/seminar_html.php +++ b/templates/dates/seminar_html.php @@ -1,6 +1,6 @@ <?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.'); diff --git a/templates/dates/seminar_html_location.php b/templates/dates/seminar_html_location.php index faf208a13cb80723fdddfb27f247d97d32c6217e..72a5fc33ba1d35095ea701998e56abdc35ef8107 100644 --- a/templates/dates/seminar_html_location.php +++ b/templates/dates/seminar_html_location.php @@ -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 ?>