fixed count taken shifts entries

This commit is contained in:
Philip Häusler 2013-12-09 17:37:50 +01:00
parent a0ec1130a6
commit 7df8b967f3
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ function NeededAngelTypes_by_shift($shift) {
$needed_angeltypes = array();
foreach ($needed_angeltypes_source as $angeltype) {
$shift_entries = ShiftEntries_by_shift_and_angeltype($shift['SID'], $angeltype['id']);
$shift_entries = ShiftEntries_by_shift_and_angeltype($shift['SID'], $angeltype['angel_type_id']);
if ($shift_entries === false)
return false;