Use empty username during setup
authorAlexander Ebert <ebert@woltlab.com>
Fri, 1 Jun 2012 10:47:20 +0000 (12:47 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 1 Jun 2012 10:47:20 +0000 (12:47 +0200)
Fixes #625

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

index d108e0bd622a11ee5ef680fab195b3ae63d1f08f..ed6987103dfa1be2b5c7f2014d7825e3978cd973 100644 (file)
@@ -344,7 +344,7 @@ class SessionHandler extends SingletonFactory {
                        'sessionID' => $sessionID,
                        'packageID' => PACKAGE_ID,
                        'userID' => $this->user->userID,
-                       'username' => $this->user->username,
+                       'username' => (PACKAGE_ID) ? $this->user->username : '',
                        'ipAddress' => UserUtil::getIpAddress(),
                        'userAgent' => UserUtil::getUserAgent(),
                        'lastActivityTime' => TIME_NOW,