From 7c6afc2bfe3263b91ecabf5530da57fe1162ea0b Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Wed, 10 Oct 2018 03:10:28 +0200 Subject: Removed `User($id)` function :tada: --- includes/pages/user_myshifts.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'includes/pages/user_myshifts.php') diff --git a/includes/pages/user_myshifts.php b/includes/pages/user_myshifts.php index ab4b00b6..7f20139c 100644 --- a/includes/pages/user_myshifts.php +++ b/includes/pages/user_myshifts.php @@ -18,7 +18,8 @@ function myshifts_title() */ function user_myshifts() { - global $user, $privileges; + global $privileges; + $user = auth()->user(); $request = request(); if ( @@ -29,7 +30,7 @@ function user_myshifts() ) { $shift_entry_id = $request->input('id'); } else { - $shift_entry_id = $user['UID']; + $shift_entry_id = $user->id; } $shifts_user = User::find($shift_entry_id); -- cgit v1.2.3-54-g00ecf