mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-05-02 00:49:21 +03:00
Fixed error in topic notifies
This commit is contained in:
parent
794c37c3fe
commit
450ea78463
|
@ -1644,7 +1644,11 @@ class ModuleTopic extends Module
|
|||
if (in_array($oBlogUser->getUserId(), $aUserIdSend)) {
|
||||
continue;
|
||||
}
|
||||
$this->SendNotifyTopicNewToSubscribeBlog($oBlogUser->getUser(), $oTopic, $oBlogUser->getBlog(),
|
||||
$ouser = $oBlogUser->getUser();
|
||||
if (empty($ouser)) {
|
||||
continue;
|
||||
}
|
||||
$this->SendNotifyTopicNewToSubscribeBlog($ouser, $oTopic, $oBlogUser->getBlog(),
|
||||
$oUserTopic);
|
||||
$aUserIdSend[] = $oBlogUser->getUserId();
|
||||
}
|
||||
|
@ -2036,4 +2040,4 @@ class ModuleTopic extends Module
|
|||
}
|
||||
));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue