From 1f764e20a368caa39b963611a84b7614f4ca1c94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20H=C3=A4usler?= Date: Sat, 29 Dec 2012 16:59:18 +0100 Subject: [PATCH] fixed strange hour sum impossible --- includes/pages/user_myshifts.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/pages/user_myshifts.php b/includes/pages/user_myshifts.php index 36ab9f36..f21b11b2 100644 --- a/includes/pages/user_myshifts.php +++ b/includes/pages/user_myshifts.php @@ -106,11 +106,12 @@ function user_myshifts() { $html .= img_button(page_link_to('user_myshifts') . (($id != $user['UID'])? '&id=' . $id : '') . '&cancel=' . $shift['id'], 'cross', 'sign_off'); $html .= ''; $html .= ''; + + $timesum += $shift['end'] - $shift['start']; } if ($html == "") $html = '' . ucfirst(Get_Text('none')) . '...' . sprintf(Get_Text('pub_myshifts_goto_shifts'), page_link_to('user_shifts')) . ''; - $timesum += $shift['end'] - $shift['start']; return msg().template_render('../templates/user_myshifts.html', array ( 'intro' => sprintf(Get_Text('pub_myshifts_intro'), $LETZTES_AUSTRAGEN),