diff --git a/plugins/Reply/Entity/NoteReply.php b/plugins/Reply/Entity/NoteReply.php index 50f8107368..3112b911ea 100644 --- a/plugins/Reply/Entity/NoteReply.php +++ b/plugins/Reply/Entity/NoteReply.php @@ -95,7 +95,7 @@ class NoteReply extends Entity $result = DB::dql('select nr.reply_to from note_reply nr ' . 'where nr.note_id = :note_id', ['note_id' => $note->getId()], ); - if (!empty($result)) { + if (!\is_null($result) && \array_key_exists('reply_to', $result)) { return $result['reply_to']; }