summaryrefslogtreecommitdiff
path: root/includes/model/UserWorkLog_model.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/model/UserWorkLog_model.php')
-rw-r--r--includes/model/UserWorkLog_model.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/model/UserWorkLog_model.php b/includes/model/UserWorkLog_model.php
index dd4b2574..46ab891e 100644
--- a/includes/model/UserWorkLog_model.php
+++ b/includes/model/UserWorkLog_model.php
@@ -93,7 +93,7 @@ function UserWorkLog_update($userWorkLog)
*/
function UserWorkLog_create($userWorkLog)
{
- global $user;
+ $user = Auth()->user();
$user_source = User($userWorkLog['user_id']);
@@ -110,7 +110,7 @@ function UserWorkLog_create($userWorkLog)
$userWorkLog['work_timestamp'],
$userWorkLog['work_hours'],
$userWorkLog['comment'],
- $user['UID'],
+ $user->id,
time()
]);