summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2013-12-09 17:37:50 +0100
committerPhilip Häusler <msquare@notrademark.de>2013-12-09 17:37:50 +0100
commit7df8b967f3cc85b29972a3b42ad2913b60173151 (patch)
tree0fd726d3ebfa41f7966a8367abee168ec83ecf77
parenta0ec1130a695f327e537bbb89588a75793969828 (diff)
fixed count taken shifts entries
-rw-r--r--includes/model/NeededAngelTypes_model.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/model/NeededAngelTypes_model.php b/includes/model/NeededAngelTypes_model.php
index 9e86c5a6..9bad22c8 100644
--- a/includes/model/NeededAngelTypes_model.php
+++ b/includes/model/NeededAngelTypes_model.php
@@ -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;