1
0
Fork 0
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:
Alexander Yakovlev 2017-07-14 18:18:26 +07:00
parent 794c37c3fe
commit 450ea78463

View file

@ -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
}
));
}
}
}