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
+2 -2
View File
@@ -1,6 +1,6 @@
<?php <?php
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.9.8'); defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.9.9');
defined('RELEASE_DATE') || define('RELEASE_DATE', '2025-10-01'); defined('RELEASE_DATE') || define('RELEASE_DATE', '2025-10-02');
defined('IN_TRACKER') || define('IN_TRACKER', false); defined('IN_TRACKER') || define('IN_TRACKER', false);
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP"); defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org"); defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");
+1 -1
View File
@@ -493,7 +493,7 @@ if ($action == "post")
$quotePostInfo = \App\Models\Post::query()->find($quotepostid); $quotePostInfo = \App\Models\Post::query()->find($quotepostid);
if ($quotePostInfo && $quotePostInfo->userid != $CURUSER['id']) { if ($quotePostInfo && $quotePostInfo->userid != $CURUSER['id']) {
$receiver = $quotePostInfo->user; $receiver = $quotePostInfo->user;
if($receiver->acceptNotification('topic_reply')) { if($receiver && $receiver->acceptNotification('topic_reply')) {
$locale = $receiver->locale; $locale = $receiver->locale;
$notify = [ $notify = [
'sender' => 0, 'sender' => 0,