diff options
author | Philip Häusler <msquare@notrademark.de> | 2012-12-29 16:59:18 +0100 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2012-12-29 16:59:18 +0100 |
commit | 1f764e20a368caa39b963611a84b7614f4ca1c94 (patch) | |
tree | dbc3f3bd3dd6da3582e720a54691e3a3abba9e6e /includes | |
parent | b7b8b142e354e701ca4a955057b22f5d6c1556bd (diff) |
fixed strange hour sum impossible
Diffstat (limited to 'includes')
-rw-r--r-- | includes/pages/user_myshifts.php | 3 |
1 files changed, 2 insertions, 1 deletions
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 .= '</td>'; $html .= '</tr>'; + + $timesum += $shift['end'] - $shift['start']; } if ($html == "") $html = '<tr><td>' . ucfirst(Get_Text('none')) . '...</td><td></td><td></td><td></td><td></td><td>' . sprintf(Get_Text('pub_myshifts_goto_shifts'), page_link_to('user_shifts')) . '</td></tr>'; - $timesum += $shift['end'] - $shift['start']; return msg().template_render('../templates/user_myshifts.html', array ( 'intro' => sprintf(Get_Text('pub_myshifts_intro'), $LETZTES_AUSTRAGEN), |