diff options
author | Philip Häusler <msquare@notrademark.de> | 2014-12-26 02:34:57 +0100 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2014-12-26 02:34:57 +0100 |
commit | fc4a5e0e7a6231f9d4a91edc2cfc999fb9a0b4bc (patch) | |
tree | 8c204aaa763c6421741706c56b4b84752468167f /includes | |
parent | 9cabdb1d78da016e8088d7e65f14c9d319afd584 (diff) |
fix shift creation for shifttypes
Diffstat (limited to 'includes')
-rw-r--r-- | includes/pages/admin_shifts.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/pages/admin_shifts.php b/includes/pages/admin_shifts.php index 733144b3..658605c1 100644 --- a/includes/pages/admin_shifts.php +++ b/includes/pages/admin_shifts.php @@ -206,7 +206,7 @@ function admin_shifts() { 'start' => $shift_start, 'end' => $shift_end, 'RID' => $rid, - 'name' => $title, + 'title' => $title, 'shifttype_id' => $shifttype_id ); @@ -269,7 +269,7 @@ function admin_shifts() { if ($shift_id === false) engelsystem_error('Unable to create shift.'); - engelsystem_log("Shift created: " . $shift['name'] . " from " . date("Y-m-d H:i", $shift['start']) . " to " . date("Y-m-d H:i", $shift['end'])); + engelsystem_log("Shift created: " . $shifttypes[$shift['shifttype_id']] . " with title " . $shift['title'] . " from " . date("Y-m-d H:i", $shift['start']) . " to " . date("Y-m-d H:i", $shift['end'])); $needed_angel_types_info = array(); foreach ($_SESSION['admin_shifts_types'] as $type_id => $count) { $angel_type_source = sql_select("SELECT * FROM `AngelTypes` WHERE `id`=" . sql_escape($type_id) . " LIMIT 1"); |