diff options
author | Philip Häusler <msquare@notrademark.de> | 2012-12-29 16:58:40 +0100 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2012-12-29 16:58:40 +0100 |
commit | b7b8b142e354e701ca4a955057b22f5d6c1556bd (patch) | |
tree | 82cb0b1f012aa6eba879422bac60a597c723d00d | |
parent | a7c44d8dce7d6e9dcee0bf63ad22608886f413c6 (diff) |
fixed strange hour sum
-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 0bf077cc..36ab9f36 100644 --- a/includes/pages/user_myshifts.php +++ b/includes/pages/user_myshifts.php @@ -95,7 +95,6 @@ function user_myshifts() { $shift_entries[] = $user_source['Nick']; } $html .= join(", ", $shift_entries); - $timesum += $shift['end'] - $shift['start']; } $html .= '</td>'; @@ -111,6 +110,8 @@ function user_myshifts() { 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), 'shifts' => $html, |