From b59cfe8ab7c42b6bc99097fa38d8bf8499860707 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 14 Oct 2020 14:23:49 +0200 Subject: [PATCH] Stop accessing the ->lastActivityTime property of the session Use TIME_NOW instead. --- .../files/lib/system/user/UserProfileHandler.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } /** -- 2.20.1