diff options
author | msquare <msquare@notrademark.de> | 2016-10-01 10:48:19 +0200 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2016-10-01 10:48:19 +0200 |
commit | d5d2acc7d80920eef5f0ed779a3738a12d5db348 (patch) | |
tree | d2d7eb680c1ecaf72480893bba252ab2d9958804 /includes/pages/user_myshifts.php | |
parent | 6dfefc3bb9f054c472156801e37300059444ecc7 (diff) |
improve code style
Diffstat (limited to 'includes/pages/user_myshifts.php')
-rw-r--r-- | includes/pages/user_myshifts.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/pages/user_myshifts.php b/includes/pages/user_myshifts.php index b60d2ed8..3cf0c571 100644 --- a/includes/pages/user_myshifts.php +++ b/includes/pages/user_myshifts.php @@ -82,8 +82,9 @@ function user_myshifts() { } return ShiftEntry_edit_view(User_Nick_render($shifts_user), date("Y-m-d H:i", $shift['start']) . ', ' . shift_length($shift), $shift['Name'], $shift['name'], $shift['angel_type'], $shift['Comment'], $shift['freeloaded'], $shift['freeload_comment'], in_array("user_shifts_admin", $privileges)); - } else + } else { redirect(page_link_to('user_myshifts')); + } } elseif (isset($_REQUEST['cancel']) && preg_match("/^[0-9]*$/", $_REQUEST['cancel'])) { $user_id = $_REQUEST['cancel']; $shift = sql_select(" |