From 72fee4db99a490bd9d25ab7d587161eec4d56452 Mon Sep 17 00:00:00 2001 From: xiaomlove Date: Thu, 2 Oct 2025 20:15:32 +0700 Subject: [PATCH] fix forums.php receiver not exists error --- include/constants.php | 4 ++-- public/forums.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/constants.php b/include/constants.php index 9df6185c..bc65b902 100644 --- a/include/constants.php +++ b/include/constants.php @@ -1,6 +1,6 @@ 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,