Skip to content
Snippets Groups Projects
Commit bb721983 authored by David Siegfried's avatar David Siegfried Committed by Jan-Hendrik Willms
Browse files

prevent warnings, refs #399

parent 04dd489c
No related branches found
No related tags found
No related merge requests found
<?
if (!isset($show_room)) :
// show rooms only if there is more than one
if (empty($dates['rooms']) || sizeof($dates['rooms']) === 1) :
if (empty($dates['rooms']) || count($dates['rooms']) === 1) :
$show_room = false;
else :
$show_room = true;
......@@ -50,12 +50,12 @@ if (!empty($dates['regular']['turnus_data']) || !empty($dates['irregular'])) :
endif;
endforeach;
unset($irregular_rooms['']);
echo sizeof($output) ? ", <br>" : '';
echo count($output) ? ", <br>" : '';
$rooms = array_merge(getPlainRooms($irregular_rooms, false), array_keys($freetext_rooms));
$rooms = array_merge(getPlainRooms($irregular_rooms), array_keys($freetext_rooms));
if (is_array($irregular) && sizeof($irregular)) :
if (isset($shrink) && !$shrink && sizeof($irregular < 20)) :
if (is_array($irregular) && count($irregular)) :
if (isset($shrink) && !$shrink && count($irregular) < 20) :
foreach ($irregular as $date) :
echo $date['tostring'];
......@@ -69,9 +69,9 @@ if (!empty($dates['regular']['turnus_data']) || !empty($dates['irregular'])) :
endforeach;
else :
echo _("Termine am") . implode(', ', shrink_dates($irregular));
if (is_array($rooms) && sizeof($rooms) > 0) :
if (sizeof($rooms) > 3) :
$rooms = array_slice($rooms, sizeof($rooms) - 3, sizeof($rooms));
if (is_array($rooms) && count($rooms) > 0) :
if (count($rooms) > 3) :
$rooms = array_slice($rooms, count($rooms) - 3, count($rooms));
endif;
if ($show_room) :
......
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