diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2018-10-10 03:10:28 +0200 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2018-10-31 13:43:23 +0100 |
commit | 7c6afc2bfe3263b91ecabf5530da57fe1162ea0b (patch) | |
tree | a251a646b6399a65842e3bfaefe44954f5ac1770 /includes/pages/user_myshifts.php | |
parent | 89e62c95a7ffd71a8e860f59378ecd13d6cbb196 (diff) |
Removed `User($id)` function :tada:
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); |