diff --git a/classes/modules/user/User.class.php b/classes/modules/user/User.class.php index 9eeaebc2..3509dd00 100644 --- a/classes/modules/user/User.class.php +++ b/classes/modules/user/User.class.php @@ -44,7 +44,7 @@ class ModuleUser extends Module { */ $sUserId=$this->Session_Get('user_id'); if ($sUserId and $oUser=$this->GetUserById($sUserId) and $oUser->getActivate()) { - if ($this->oSession=$this->GetSessionByUserId($oUser->getId())) { + if ($this->oSession=$oUser->getSession()) { /** * Сюда можно вставить условие на проверку айпишника сессии */