diff options
Diffstat (limited to 'includes/model/Shifts_model.php')
-rw-r--r-- | includes/model/Shifts_model.php | 4 |
1 files changed, 2 insertions, 2 deletions
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'] ] |