summaryrefslogtreecommitdiff
path: root/includes/pages
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2017-11-19 13:55:18 +0100
committermsquare <msquare@notrademark.de>2017-11-19 13:55:18 +0100
commit86e41e29491bcd7767dcac5df2158b4ead8b1aff (patch)
treeddab91bdf15dae32880a74137f84645b9fce5b9f /includes/pages
parent1c77c45bcfb74297ccf1513c383b6710a9d26f67 (diff)
change logging of needed angeltypes for created shifts
Diffstat (limited to 'includes/pages')
-rw-r--r--includes/pages/admin_shifts.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/pages/admin_shifts.php b/includes/pages/admin_shifts.php
index c77bd46d..721d0f4f 100644
--- a/includes/pages/admin_shifts.php
+++ b/includes/pages/admin_shifts.php
@@ -308,7 +308,6 @@ function admin_shifts()
redirect(page_link_to('admin_shifts'));
}
- $needed_angel_types_info = [];
foreach ($session->get('admin_shifts_shifts', []) as $shift) {
$shift['URL'] = null;
$shift['PSID'] = null;
@@ -321,6 +320,7 @@ function admin_shifts()
. ' to ' . date('Y-m-d H:i', $shift['end'])
);
+ $needed_angel_types_info = [];
foreach ($session->get('admin_shifts_types', []) as $type_id => $count) {
$angel_type_source = DB::selectOne('
SELECT *
@@ -341,9 +341,9 @@ function admin_shifts()
$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));
success('Schichten angelegt.');
redirect(page_link_to('admin_shifts'));
} else {