summaryrefslogtreecommitdiff
path: root/includes/sys_log.php
diff options
context:
space:
mode:
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);
}