fixes #644: display shifts with same start time on user myshifts page
This commit is contained in:
parent
69b3a2440c
commit
edcf794a32
|
@ -464,7 +464,7 @@ function User_view_myshifts(
|
||||||
$myshifts_table = [];
|
$myshifts_table = [];
|
||||||
$timeSum = 0;
|
$timeSum = 0;
|
||||||
foreach ($shifts as $shift) {
|
foreach ($shifts as $shift) {
|
||||||
$myshifts_table[$shift['start']] = User_view_myshift($shift, $user_source, $its_me);
|
$myshifts_table[$shift['start'] . $shift['SID']] = User_view_myshift($shift, $user_source, $its_me);
|
||||||
|
|
||||||
if (!$shift['freeloaded']) {
|
if (!$shift['freeloaded']) {
|
||||||
$timeSum += ($shift['end'] - $shift['start']);
|
$timeSum += ($shift['end'] - $shift['start']);
|
||||||
|
|
Loading…
Reference in New Issue