fixed strange hour sum
This commit is contained in:
parent
a7c44d8dce
commit
b7b8b142e3
|
@ -95,7 +95,6 @@ function user_myshifts() {
|
||||||
$shift_entries[] = $user_source['Nick'];
|
$shift_entries[] = $user_source['Nick'];
|
||||||
}
|
}
|
||||||
$html .= join(", ", $shift_entries);
|
$html .= join(", ", $shift_entries);
|
||||||
$timesum += $shift['end'] - $shift['start'];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$html .= '</td>';
|
$html .= '</td>';
|
||||||
|
@ -111,6 +110,8 @@ function user_myshifts() {
|
||||||
if ($html == "")
|
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>';
|
$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 (
|
return msg().template_render('../templates/user_myshifts.html', array (
|
||||||
'intro' => sprintf(Get_Text('pub_myshifts_intro'), $LETZTES_AUSTRAGEN),
|
'intro' => sprintf(Get_Text('pub_myshifts_intro'), $LETZTES_AUSTRAGEN),
|
||||||
'shifts' => $html,
|
'shifts' => $html,
|
||||||
|
|
Loading…
Reference in New Issue