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,