fixes #280 shift entries finished by user returns no freeloaded shifts

This commit is contained in:
msquare 2016-11-25 13:58:43 +01:00
parent bae3ede662
commit 476d1daeb7
1 changed files with 1 additions and 0 deletions

View File

@ -115,6 +115,7 @@ function ShiftEntries_finished_by_user($user) {
JOIN `ShiftTypes` ON `ShiftTypes`.`id` = `Shifts`.`shifttype_id`
WHERE `ShiftEntry`.`UID`=" . sql_escape($user['UID']) . "
AND `Shifts`.`end` < " . sql_escape(time()) . "
AND `ShiftEntry`.`freeloaded` = 0
ORDER BY `Shifts`.`end`
");
}