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

re #2059

parent 01d1c63f
No related branches found
No related tags found
No related merge requests found
...@@ -47,17 +47,17 @@ if (!$dates['regular']['turnus_data'] && empty($dates['irregular'])) { ...@@ -47,17 +47,17 @@ if (!$dates['regular']['turnus_data'] && empty($dates['irregular'])) {
if (isset($dates['irregular']) && is_array($dates['irregular'])) { if (isset($dates['irregular']) && is_array($dates['irregular'])) {
foreach ($dates['irregular'] as $date) { foreach ($dates['irregular'] as $date) {
if (!isset($irregular_rooms[$date['resource_id']])) {
$irregular_rooms[$date['resource_id']] = 0;
}
$irregular[] = $date; $irregular[] = $date;
$irregular_strings[] = $date['tostring']; $irregular_strings[] = $date['tostring'];
if ($date['resource_id']) { if ($date['resource_id']) {
if (!isset($irregular_rooms[$date['resource_id']])) {
$irregular_rooms[$date['resource_id']] = 0;
}
$irregular_rooms[$date['resource_id']]++; $irregular_rooms[$date['resource_id']]++;
} elseif ($date['raum']) { } elseif ($date['raum']) {
$temp = '(' . htmlReady($date['raum']) . ')'; $temp = '(' . htmlReady($date['raum']) . ')';
if (!isset($freetext_rooms[$temp])) { if (!isset($freetext_rooms[$temp])) {
$irregular_rooms[$temp] = 0; $freetext_rooms[$temp] = 0;
} }
$freetext_rooms[$temp]++; $freetext_rooms[$temp]++;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment