diff options
author | Philip Häusler <msquare@notrademark.de> | 2015-08-13 22:57:40 +0200 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2015-08-13 22:57:40 +0200 |
commit | 3d7e378b67807fe50bf893eed9de040dfdc7add3 (patch) | |
tree | fdb4b84b71e7d32d0350b947e29ea294ed294d20 /includes/view | |
parent | 1cd6a4f4f65bc4f10835af59af3ac5e454e7f8be (diff) |
change default end date on creating shifts
Diffstat (limited to 'includes/view')
-rw-r--r-- | includes/view/User_view.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/view/User_view.php b/includes/view/User_view.php index a3665690..eb46b55c 100644 --- a/includes/view/User_view.php +++ b/includes/view/User_view.php @@ -159,15 +159,15 @@ function User_view($user_source, $admin_user_privilege, $freeloader, $user_angel $myshift['actions'] = table_buttons($myshift['actions']); if ($shift['freeloaded']) - $timesum += - 2 * ($shift['end'] - $shift['start']); + $timesum += (- 2 * ($shift['end'] - $shift['start'])); else - $timesum += $shift['end'] - $shift['start']; + $timesum += ($shift['end'] - $shift['start']); $myshifts_table[] = $myshift; } if (count($myshifts_table) > 0) $myshifts_table[] = array( 'date' => '<b>' . _("Sum:") . '</b>', - 'time' => "<b>" . round($timesum / (60 * 60), 1) . " h</b>", + 'time' => "<b>" . round($timesum / 3600, 1) . " h</b>", 'room' => "", 'shift_info' => "", 'comment' => "", |