1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-05 07:54:24 +03:00

Merge pull request #57 from kpoxas/645edc50b589cff1af9d6a5ad6490648a8f99b5a

Избыточность кода
This commit is contained in:
Mzhelskiy Maxim 2011-12-30 19:29:29 -08:00
commit 3344672ec1

View file

@ -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()) {
/**
* Сюда можно вставить условие на проверку айпишника сессии
*/