diff options
author | Philip Häusler <msquare@notrademark.de> | 2013-01-02 14:17:34 +0100 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2013-01-02 14:17:34 +0100 |
commit | 98aac2a429f14d58bc6017195ff4c64209e325b2 (patch) | |
tree | a646e35fe49ba82d415295c5a2b97f61fa1a098b /includes | |
parent | a573b4e325bbac31642f5a7d0a65cc07464c473c (diff) |
brought back hour sum on my shifts
Diffstat (limited to 'includes')
-rw-r--r-- | includes/pages/user_myshifts.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/pages/user_myshifts.php b/includes/pages/user_myshifts.php index 346a74c0..4fec4872 100644 --- a/includes/pages/user_myshifts.php +++ b/includes/pages/user_myshifts.php @@ -101,8 +101,8 @@ function user_myshifts() { $timesum += $shift['end'] - $shift['start']; $myshifts_table[] = $myshift; } - if (count($shifts) == 0) - $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>'; + if(count($myshifts_table) > 0) + $myshifts_table[] = array('date' => "<b>Summe:</b>", 'time' => "<b>" . round($timesum / (60*60), 1) . " h</b>", 'room' => "", 'shift_info' => "", 'comment' => "", 'actions' => ""); return page(array( msg(), |