Finally fixed the username-column issue
authorAlexander Ebert <ebert@woltlab.com>
Fri, 1 Jun 2012 10:59:05 +0000 (12:59 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 1 Jun 2012 10:59:05 +0000 (12:59 +0200)
See 312a61b

wcfsetup/install/files/lib/system/session/SessionHandler.class.php

index ed6987103dfa1be2b5c7f2014d7825e3978cd973..d1fe3a00ca4be191735d128108bed3dd1e9ecfd1 100644 (file)
@@ -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,