summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2017-12-17 13:22:29 +0100
committermsquare <msquare@notrademark.de>2017-12-17 13:22:29 +0100
commit769d8c4af94e882947e7e1f0fe5938259eb8ff4b (patch)
tree1d821c33b421c5aaebd029c778c41bc449e8a9cd /includes
parentb2602f8936b056ad27d5343a0fe4be0483da8bf1 (diff)
better logging of needed angeltypes for shifts and rooms
Diffstat (limited to 'includes')
-rw-r--r--includes/controller/shifts_controller.php4
1 files changed, 3 insertions, 1 deletions
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(