From 7d82103762591e66580bf0b5c3cfd94ba1ada6f4 Mon Sep 17 00:00:00 2001 From: msquare Date: Mon, 19 Aug 2019 10:20:07 +0200 Subject: [PATCH] better bar min calculation --- 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 464c8810..9e22d8a7 100644 --- a/includes/view/Shifts_view.php +++ b/includes/view/Shifts_view.php @@ -197,7 +197,7 @@ function Shift_view_render_needed_angeltype($needed_angeltype, $angeltypes, $shi $needed_angels .= '

' . AngelType_name_render($angeltype) . '

'; $bar_max = max($needed_angeltype['count'] * 10, $needed_angeltype['taken'] * 10, 10); - $bar_value = max(bar_max/5, $needed_angeltype['taken'] * 10); + $bar_value = max($bar_max/5, $needed_angeltype['taken'] * 10); $needed_angels .= progress_bar( 0, $bar_max,