diff options
author | msquare <msquare@notrademark.de> | 2017-12-29 17:30:54 +0100 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2017-12-29 17:30:54 +0100 |
commit | be3652b44aa279d7a8ae153d8038959e71eb7ecc (patch) | |
tree | c14b5aa69e26bfee9dac4068202e9b019732905d /includes | |
parent | 86a38a3372557bd72db309e7b24b4a4a95544397 (diff) |
fix work log logs
Diffstat (limited to 'includes')
-rw-r--r-- | includes/model/UserWorkLog_model.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/model/UserWorkLog_model.php b/includes/model/UserWorkLog_model.php index d9628e1d..55e135ca 100644 --- a/includes/model/UserWorkLog_model.php +++ b/includes/model/UserWorkLog_model.php @@ -23,7 +23,7 @@ function UserWorkLogsForUser($user) { */ function UserWorkLog_delete($userWorkLog) { - $user_source = $userWorkLog['user_id']; + $user_source = User($userWorkLog['user_id']); $result = Db::delete("DELETE FROM `UserWorkLog` WHERE `id`=?", [ $userWorkLog['id'] ]); @@ -42,7 +42,7 @@ function UserWorkLog_delete($userWorkLog) */ function UserWorkLog_update($userWorkLog) { - $user_source = $userWorkLog['user_id']; + $user_source = User($userWorkLog['user_id']); $result = Db::update("UPDATE `UserWorkLog` SET `work_hours`=?, @@ -69,7 +69,7 @@ function UserWorkLog_create($userWorkLog) { global $user; - $user_source = $userWorkLog['user_id']; + $user_source = User($userWorkLog['user_id']); $result = Db::insert("INSERT INTO `UserWorkLog` ( `user_id`, |