From: Tim Düsterhus Date: Wed, 14 Oct 2020 12:23:49 +0000 (+0200) Subject: Stop accessing the ->lastActivityTime property of the session X-Git-Tag: 5.4.0_Alpha_1~724^2~10^2~8 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b59cfe8ab7c42b6bc99097fa38d8bf8499860707;p=GitHub%2FWoltLab%2FWCF.git Stop accessing the ->lastActivityTime property of the session Use TIME_NOW instead. --- diff --git a/wcfsetup/install/files/lib/system/user/UserProfileHandler.class.php b/wcfsetup/install/files/lib/system/user/UserProfileHandler.class.php index 3834b1524f..ce47cc998a 100644 --- a/wcfsetup/install/files/lib/system/user/UserProfileHandler.class.php +++ b/wcfsetup/install/files/lib/system/user/UserProfileHandler.class.php @@ -27,7 +27,7 @@ class UserProfileHandler extends SingletonFactory { */ protected function init() { $this->userProfile = new UserProfile(WCF::getUser()); - $this->userProfile->setSessionLastActivityTime(WCF::getSession()->lastActivityTime); + $this->userProfile->setSessionLastActivityTime(TIME_NOW); } /** @@ -57,7 +57,7 @@ class UserProfileHandler extends SingletonFactory { */ public function reloadUserProfile() { $this->userProfile = new UserProfile(new User($this->userID)); - $this->userProfile->setSessionLastActivityTime(WCF::getSession()->lastActivityTime); + $this->userProfile->setSessionLastActivityTime(TIME_NOW); } /**