From 2b75da323bb275d9bffa43d25790cccf135426c8 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 1 Jun 2012 12:59:05 +0200 Subject: [PATCH] Finally fixed the username-column issue See 312a61b --- .../install/files/lib/system/session/SessionHandler.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php index ed6987103d..d1fe3a00ca 100644 --- a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php +++ b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php @@ -344,7 +344,7 @@ class SessionHandler extends SingletonFactory { 'sessionID' => $sessionID, 'packageID' => PACKAGE_ID, 'userID' => $this->user->userID, - 'username' => (PACKAGE_ID) ? $this->user->username : '', + 'username' => ($this->user->username === null) ? '' : $this->user->username, 'ipAddress' => UserUtil::getIpAddress(), 'userAgent' => UserUtil::getUserAgent(), 'lastActivityTime' => TIME_NOW, -- 2.20.1