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:
commit
3344672ec1
|
@ -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()) {
|
||||
/**
|
||||
* Сюда можно вставить условие на проверку айпишника сессии
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue