From: Alexander Ebert Date: Fri, 1 Jun 2012 10:59:05 +0000 (+0200) Subject: Finally fixed the username-column issue X-Git-Tag: 2.0.0_Beta_1~1086 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2b75da323bb275d9bffa43d25790cccf135426c8;p=GitHub%2FWoltLab%2FWCF.git Finally fixed the username-column issue See 312a61b --- 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,