diff options
author | msquare <msquare@notrademark.de> | 2016-08-21 18:00:24 +0200 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2016-08-21 18:00:39 +0200 |
commit | 53ad1b5110e22bdbb57960aec7d29b824dda7b5b (patch) | |
tree | 5a33544142ecf13e5902ff196d8b8470b5120945 /includes/pages/user_shifts.php | |
parent | 29cbd4a9dde440605c5f34d50961fa5208411293 (diff) |
fix codacy unused code
Diffstat (limited to 'includes/pages/user_shifts.php')
-rw-r--r-- | includes/pages/user_shifts.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/includes/pages/user_shifts.php b/includes/pages/user_shifts.php index 63ca2543..e4d20fdc 100644 --- a/includes/pages/user_shifts.php +++ b/includes/pages/user_shifts.php @@ -5,7 +5,7 @@ function shifts_title() { } function user_shifts() { - global $user, $privileges, $max_freeloadable_shifts; + global $user, $privileges; if (User_is_freeloader($user)) redirect(page_link_to('user_myshifts')); @@ -162,7 +162,7 @@ function user_shifts() { $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 '" . $shifttypes[$shifttype_id] . ", " . $title . "' 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(_("Shift updated.")); redirect(shift_link([ @@ -171,8 +171,6 @@ function user_shifts() { } } - $room_select = html_select_key('rid', 'rid', $room_array, $rid); - $angel_types = ""; foreach ($types as $type) $angel_types .= form_spinner('type_' . $type['id'], $type['name'], $needed_angel_types[$type['id']]); |