diff options
author | jwacalex <aboehm@dompfaffenweg.de> | 2016-11-30 23:31:21 +0100 |
---|---|---|
committer | jwacalex <aboehm@dompfaffenweg.de> | 2016-11-30 23:31:21 +0100 |
commit | 6a591e7557e5a2b9c14dec7abb75f09249df9b6d (patch) | |
tree | 1bce73a6f803792dcef5196aefe52a45fb4a46a3 | |
parent | 64c304f9bfc17e0fcff0280f236719a9c207b997 (diff) | |
parent | 39f9c2e34cd2fb44a3ea66e363045b250a0e4b07 (diff) |
merged cherry picked commit
-rw-r--r-- | includes/controller/shift_entries_controller.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/controller/shift_entries_controller.php b/includes/controller/shift_entries_controller.php index dde23bb9..adb40c58 100644 --- a/includes/controller/shift_entries_controller.php +++ b/includes/controller/shift_entries_controller.php @@ -43,7 +43,8 @@ function shift_entry_add_controller() { } $type = $type[0]; - if (isset($_REQUEST['user_id']) && preg_match("/^[0-9]*$/", $_REQUEST['user_id']) && in_array('user_shifts_admin', $privileges)) { + if (isset($_REQUEST['user_id']) && preg_match("/^[0-9]*$/", $_REQUEST['user_id']) && + in_array('user_shifts_admin', $privileges)) { $user_id = $_REQUEST['user_id']; } else { $user_id = $user['UID']; |