From d519cd2516bb74764fb3558ae501406fb20b0206 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Wed, 13 Mar 2024 00:50:22 +0900 Subject: [PATCH] Fix error when document was not found --- modules/comment/comment.model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/comment/comment.model.php b/modules/comment/comment.model.php index fa0d7a9e7..1cb80d1ca 100644 --- a/modules/comment/comment.model.php +++ b/modules/comment/comment.model.php @@ -1005,7 +1005,7 @@ class CommentModel extends Comment } foreach ($output->data as $val) { - if (isset($document_srl_list[$val->document_srl])) + if (isset($document_srl_list[$val->document_srl]) && is_object($document_srl_list[$val->document_srl])) { $val->module_srl = $document_srl_list[$val->document_srl]->get('module_srl'); $val->document_member_srl = $document_srl_list[$val->document_srl]->get('member_srl');