diff options
Diffstat (limited to 'includes/model')
-rw-r--r-- | includes/model/Message_model.php | 2 | ||||
-rw-r--r-- | includes/model/Shifts_model.php | 2 | ||||
-rw-r--r-- | includes/model/UserWorkLog_model.php | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/includes/model/Message_model.php b/includes/model/Message_model.php index 26f7e599..a438a8c5 100644 --- a/includes/model/Message_model.php +++ b/includes/model/Message_model.php @@ -35,7 +35,7 @@ function Message($message_id) */ function Message_send($receiver_user_id, $text) { - $user = Auth()->user(); + $user = auth()->user(); $text = preg_replace("/([^\p{L}\p{P}\p{Z}\p{N}\n]{1,})/ui", '', strip_tags($text)); $receiver_user_id = preg_replace('/([^\d]{1,})/ui', '', strip_tags($receiver_user_id)); diff --git a/includes/model/Shifts_model.php b/includes/model/Shifts_model.php index cc909954..d6fbe3b6 100644 --- a/includes/model/Shifts_model.php +++ b/includes/model/Shifts_model.php @@ -519,7 +519,7 @@ function Shift_delete($shift_id) */ function Shift_update($shift) { - $user = Auth()->user(); + $user = auth()->user(); $shift['name'] = ShiftType($shift['shifttype_id'])['name']; mail_shift_change(Shift($shift['SID']), $shift); diff --git a/includes/model/UserWorkLog_model.php b/includes/model/UserWorkLog_model.php index 11f60901..2b87c040 100644 --- a/includes/model/UserWorkLog_model.php +++ b/includes/model/UserWorkLog_model.php @@ -94,7 +94,7 @@ function UserWorkLog_update($userWorkLog) */ function UserWorkLog_create($userWorkLog) { - $user = Auth()->user(); + $user = auth()->user(); $user_source = User::find($userWorkLog['user_id']); |