better logging of needed angeltypes for shifts and rooms

This commit is contained in:
msquare 2017-12-12 20:04:36 +01:00
parent 74f3677f19
commit d5631297dc
2 changed files with 6 additions and 2 deletions

View File

@ -118,9 +118,11 @@ 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);
if($angeltype_count > 0) {
$needed_angeltype_info[] = $angeltype['name'] . ': ' . $angeltype_count; $needed_angeltype_info[] = $angeltype['name'] . ': ' . $angeltype_count;
} }
} }
}
engelsystem_log( engelsystem_log(
'Set needed angeltypes of room ' . $name 'Set needed angeltypes of room ' . $name

View File

@ -338,9 +338,11 @@ function admin_shifts()
$count $count
] ]
); );
if($count > 0) {
$needed_angel_types_info[] = $angel_type_source['name'] . ': ' . $count; $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));
} }