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

@@ -1,6 +1,6 @@
<?php
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.9.8');
defined('RELEASE_DATE') || define('RELEASE_DATE', '2025-10-01');
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.9.9');
defined('RELEASE_DATE') || define('RELEASE_DATE', '2025-10-02');
defined('IN_TRACKER') || define('IN_TRACKER', false);
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");

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,