fix forums.php receiver not exists error

This commit is contained in:
xiaomlove
2025-10-02 20:15:32 +07:00
parent f2a7f2c09c
commit 72fee4db99
2 changed files with 3 additions and 3 deletions

View File

@@ -493,7 +493,7 @@ if ($action == "post")
$quotePostInfo = \App\Models\Post::query()->find($quotepostid);
if ($quotePostInfo && $quotePostInfo->userid != $CURUSER['id']) {
$receiver = $quotePostInfo->user;
if($receiver->acceptNotification('topic_reply')) {
if($receiver && $receiver->acceptNotification('topic_reply')) {
$locale = $receiver->locale;
$notify = [
'sender' => 0,