summaryrefslogtreecommitdiff
path: root/includes/sys_log.php
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2018-10-09 21:47:31 +0200
committermsquare <msquare@notrademark.de>2018-10-31 13:43:23 +0100
commit89e62c95a7ffd71a8e860f59378ecd13d6cbb196 (patch)
treea26965030177112a0d54a232c81ffd21d48529de /includes/sys_log.php
parentb069a938c6721ab5adddcbec4cff858ded6f0e1e (diff)
Changed more functions :tada:
Diffstat (limited to 'includes/sys_log.php')
-rw-r--r--includes/sys_log.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/sys_log.php b/includes/sys_log.php
index 513586e6..595e8b55 100644
--- a/includes/sys_log.php
+++ b/includes/sys_log.php
@@ -8,11 +8,11 @@
*/
function engelsystem_log($message)
{
- global $user;
$nick = "Guest";
$logger = app('logger');
+ $user = auth()->user();
- if (isset($user)) {
+ if ($user) {
$nick = User_Nick_render($user);
}