Update userID attribute on userChange 2.0.final
authorJoshua Rüsweg <josh@bastelstu.be>
Sun, 18 Jun 2017 20:30:58 +0000 (22:30 +0200)
committerJoshua Rüsweg <josh@bastelstu.be>
Sun, 18 Jun 2017 20:30:58 +0000 (22:30 +0200)
wcfsetup/install/files/lib/system/session/SessionHandler.class.php

index c9bcc24915d60024af2c7d56fca6bf84a5ce1328..b15af8369367eccdb03b173506f89ccc92e572f3 100644 (file)
@@ -495,6 +495,7 @@ class SessionHandler extends SingletonFactory {
                
                // update user reference
                $this->user = $user;
+               $this->userID = $this->user->userID ?: 0;
                
                if (!$hideSession) {
                        // update session