From 769d8c4af94e882947e7e1f0fe5938259eb8ff4b Mon Sep 17 00:00:00 2001 From: msquare Date: Sun, 17 Dec 2017 13:22:29 +0100 Subject: better logging of needed angeltypes for shifts and rooms --- includes/controller/shifts_controller.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/controller/shifts_controller.php b/includes/controller/shifts_controller.php index 739ba009..28e35a1a 100644 --- a/includes/controller/shifts_controller.php +++ b/includes/controller/shifts_controller.php @@ -149,7 +149,9 @@ function shift_edit_controller() $needed_angel_types_info = []; foreach ($needed_angel_types as $type_id => $count) { NeededAngelType_add($shift_id, $type_id, null, $count); - $needed_angel_types_info[] = $angeltypes[$type_id] . ': ' . $count; + if($count > 0) { + $needed_angel_types_info[] = $angeltypes[$type_id] . ': ' . $count; + } } engelsystem_log( -- cgit v1.2.3-54-g00ecf