From 2dcb7cc2de448c664bbc9a7112f9cb13dc15c516 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Mon, 8 Oct 2018 21:15:56 +0200 Subject: Replaced some global `$user` variables --- includes/model/Shifts_model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes/model/Shifts_model.php') diff --git a/includes/model/Shifts_model.php b/includes/model/Shifts_model.php index 74facc0a..30ce5a97 100644 --- a/includes/model/Shifts_model.php +++ b/includes/model/Shifts_model.php @@ -518,7 +518,7 @@ function Shift_delete($shift_id) */ function Shift_update($shift) { - global $user; + $user = Auth()->user(); $shift['name'] = ShiftType($shift['shifttype_id'])['name']; mail_shift_change(Shift($shift['SID']), $shift); @@ -543,7 +543,7 @@ function Shift_update($shift) $shift['title'], $shift['URL'], $shift['PSID'], - $user['UID'], + $user->id, time(), $shift['SID'] ] -- cgit v1.2.3-54-g00ecf