summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2014-12-28 01:35:36 +0100
committerPhilip Häusler <msquare@notrademark.de>2014-12-28 01:35:36 +0100
commita6ab81b834fe91b0f0704a7db33e377c8dc63a23 (patch)
tree796a7f663c7ffb320b126f9310b7b5068da25bb7
parent30e974402d29eb92a415cae6a75de2b739d8357b (diff)
fix overfull progress bars
-rw-r--r--includes/view/Shifts_view.php2
1 files changed, 1 insertions, 1 deletions
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 .= '<div class="pull-right">' . Shift_signup_button_render($shift, $angeltypes[$needed_angeltype['TID']]) . '</div>';
$needed_angels .= '<h3>' . AngelType_name_render($angeltypes[$needed_angeltype['TID']]) . '</h3>';
- $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) {