summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2017-12-12 20:04:36 +0100
committermsquare <msquare@notrademark.de>2017-12-12 20:04:36 +0100
commitd5631297dc42c06b1695fdb6f65d2b6a4b04c633 (patch)
tree83838e77af3a086bea45f2eedc69e44dcec3d9ad /includes
parent74f3677f19b70bbe6655f2d9d9a42792b22120de (diff)
better logging of needed angeltypes for shifts and rooms
Diffstat (limited to 'includes')
-rw-r--r--includes/pages/admin_rooms.php4
-rw-r--r--includes/pages/admin_shifts.php4
2 files changed, 6 insertions, 2 deletions
diff --git a/includes/pages/admin_rooms.php b/includes/pages/admin_rooms.php
index 55b52cd9..b1db9509 100644
--- a/includes/pages/admin_rooms.php
+++ b/includes/pages/admin_rooms.php
@@ -118,7 +118,9 @@ function admin_rooms()
$angeltype = AngelType($angeltype_id);
if ($angeltype != null) {
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;
+ }
}
}
diff --git a/includes/pages/admin_shifts.php b/includes/pages/admin_shifts.php
index 223ed074..22ce7635 100644
--- a/includes/pages/admin_shifts.php
+++ b/includes/pages/admin_shifts.php
@@ -338,7 +338,9 @@ function admin_shifts()
$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));