mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-26 03:30:48 +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)) {
|
if (in_array($oBlogUser->getUserId(), $aUserIdSend)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$this->SendNotifyTopicNewToSubscribeBlog($oBlogUser->getUser(), $oTopic, $oBlogUser->getBlog(),
|
$ouser = $oBlogUser->getUser();
|
||||||
|
if (empty($ouser)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
$this->SendNotifyTopicNewToSubscribeBlog($ouser, $oTopic, $oBlogUser->getBlog(),
|
||||||
$oUserTopic);
|
$oUserTopic);
|
||||||
$aUserIdSend[] = $oBlogUser->getUserId();
|
$aUserIdSend[] = $oBlogUser->getUserId();
|
||||||
}
|
}
|
||||||
|
@ -2036,4 +2040,4 @@ class ModuleTopic extends Module
|
||||||
}
|
}
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue