From a6ab81b834fe91b0f0704a7db33e377c8dc63a23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20H=C3=A4usler?= Date: Sun, 28 Dec 2014 01:35:36 +0100 Subject: [PATCH] fix overfull progress bars --- includes/view/Shifts_view.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/view/Shifts_view.php b/includes/view/Shifts_view.php index ed80d204..e6f400db 100644 --- a/includes/view/Shifts_view.php +++ b/includes/view/Shifts_view.php @@ -36,7 +36,7 @@ function Shift_view($shift, $shifttype, $room, $shift_admin, $angeltypes_source, $needed_angels .= '
' . Shift_signup_button_render($shift, $angeltypes[$needed_angeltype['TID']]) . '
'; $needed_angels .= '

' . AngelType_name_render($angeltypes[$needed_angeltype['TID']]) . '

'; - $needed_angels .= progress_bar(0, $needed_angeltype['count'], $needed_angeltype['taken'], $class, $needed_angeltype['taken'] . ' / ' . $needed_angeltype['count']); + $needed_angels .= progress_bar(0, $needed_angeltype['count'], min($needed_angeltype['taken'], $needed_angeltype['count']), $class, $needed_angeltype['taken'] . ' / ' . $needed_angeltype['count']); $angels = []; foreach ($shift['ShiftEntry'] as $shift_entry) {