diff options
Diffstat (limited to 'includes/pages/user_myshifts.php')
-rw-r--r-- | includes/pages/user_myshifts.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/pages/user_myshifts.php b/includes/pages/user_myshifts.php index 7f20139c..7fa33518 100644 --- a/includes/pages/user_myshifts.php +++ b/includes/pages/user_myshifts.php @@ -26,7 +26,7 @@ function user_myshifts() $request->has('id') && in_array('user_shifts_admin', $privileges) && preg_match('/^\d{1,}$/', $request->input('id')) - && count(DB::select('SELECT `UID` FROM `User` WHERE `UID`=?', [$request->input('id')])) > 0 + && User::find($request->input('id')) ) { $shift_entry_id = $request->input('id'); } else { |