From 279e54db4226f264e57748bc123f81132be9892c Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms <tleilax+github@gmail.com> Date: Tue, 24 Jan 2023 15:47:06 +0100 Subject: [PATCH] re #2059 --- templates/dates/seminar_html.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/dates/seminar_html.php b/templates/dates/seminar_html.php index e4362cf871e..b91079a7b18 100644 --- a/templates/dates/seminar_html.php +++ b/templates/dates/seminar_html.php @@ -47,17 +47,17 @@ if (!$dates['regular']['turnus_data'] && empty($dates['irregular'])) { if (isset($dates['irregular']) && is_array($dates['irregular'])) { foreach ($dates['irregular'] as $date) { - if (!isset($irregular_rooms[$date['resource_id']])) { - $irregular_rooms[$date['resource_id']] = 0; - } $irregular[] = $date; $irregular_strings[] = $date['tostring']; if ($date['resource_id']) { + if (!isset($irregular_rooms[$date['resource_id']])) { + $irregular_rooms[$date['resource_id']] = 0; + } $irregular_rooms[$date['resource_id']]++; } elseif ($date['raum']) { $temp = '(' . htmlReady($date['raum']) . ')'; if (!isset($freetext_rooms[$temp])) { - $irregular_rooms[$temp] = 0; + $freetext_rooms[$temp] = 0; } $freetext_rooms[$temp]++; } -- GitLab