better logging of needed angeltypes for shifts and rooms
This commit is contained in:
parent
74f3677f19
commit
d5631297dc
|
@ -118,7 +118,9 @@ function admin_rooms()
|
||||||
$angeltype = AngelType($angeltype_id);
|
$angeltype = AngelType($angeltype_id);
|
||||||
if ($angeltype != null) {
|
if ($angeltype != null) {
|
||||||
NeededAngelType_add(null, $angeltype_id, $room_id, $angeltype_count);
|
NeededAngelType_add(null, $angeltype_id, $room_id, $angeltype_count);
|
||||||
$needed_angeltype_info[] = $angeltype['name'] . ': ' . $angeltype_count;
|
if($angeltype_count > 0) {
|
||||||
|
$needed_angeltype_info[] = $angeltype['name'] . ': ' . $angeltype_count;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -338,7 +338,9 @@ function admin_shifts()
|
||||||
$count
|
$count
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
$needed_angel_types_info[] = $angel_type_source['name'] . ': ' . $count;
|
if($count > 0) {
|
||||||
|
$needed_angel_types_info[] = $angel_type_source['name'] . ': ' . $count;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
engelsystem_log('Shift needs following angel types: ' . join(', ', $needed_angel_types_info));
|
engelsystem_log('Shift needs following angel types: ' . join(', ', $needed_angel_types_info));
|
||||||
|
|
Loading…
Reference in New Issue