diff options
author | Philip Häusler <msquare@notrademark.de> | 2012-12-27 02:44:21 +0100 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2012-12-27 02:44:21 +0100 |
commit | 670cd715c559c521fe8f315fa34c00ac4f5defcb (patch) | |
tree | 6f3f57298c374fc5e96a622cc61da33e4ade8602 /includes | |
parent | 26ffee4a96f08aa58a348d11674f6fd29c1498b0 (diff) |
#28 logging doku
Diffstat (limited to 'includes')
-rw-r--r-- | includes/pages/user_shifts.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/pages/user_shifts.php b/includes/pages/user_shifts.php index c239ca71..bd7f7831 100644 --- a/includes/pages/user_shifts.php +++ b/includes/pages/user_shifts.php @@ -123,10 +123,10 @@ function user_shifts() { $needed_angel_types_info = array(); foreach ($needed_angel_types as $type_id => $count) { sql_query("INSERT INTO `NeededAngelTypes` SET `shift_id`=" . sql_escape($shift_id) . ", `angel_type_id`=" . sql_escape($type_id) . ", `count`=" . sql_escape($count)); - $needed_angel_types_info[] = $angel_types[$type_id]; + $needed_angel_types_info[] = $angel_types[$type_id]['name'] . ": " . $count; } - engelsystem_log("Updated shift " . $name . " from " . date("y-m-d H:i", $start) . " to " . date("y-m-d H:i", $end) . " with angel types " . join(", ", $needed_angel_types_info)); + engelsystem_log("Updated shift '" . $name . "' from " . date("y-m-d H:i", $start) . " to " . date("y-m-d H:i", $end) . " with angel types " . join(", ", $needed_angel_types_info)); success("Schicht gespeichert."); redirect(page_link_to('user_shifts')); } |