diff options
Diffstat (limited to 'includes/pages/user_myshifts.php')
-rw-r--r-- | includes/pages/user_myshifts.php | 5 |
1 files changed, 3 insertions, 2 deletions
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); |