From: Joshua Rüsweg Date: Sun, 18 Jun 2017 20:30:58 +0000 (+0200) Subject: Update userID attribute on userChange X-Git-Tag: 2.1.16~1^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d8089cd6ac5ca6d96cd74a88146576a0ab5a155b;p=GitHub%2FWoltLab%2FWCF.git Update userID attribute on userChange --- diff --git a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php index c9bcc24915..b15af83693 100644 --- a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php +++ b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php @@ -495,6 +495,7 @@ class SessionHandler extends SingletonFactory { // update user reference $this->user = $user; + $this->userID = $this->user->userID ?: 0; if (!$hideSession) { // update session