diff --git a/wire/modules/Fieldtype/FieldtypeComments/CommentArray.php b/wire/modules/Fieldtype/FieldtypeComments/CommentArray.php index 45d3ee12..0667b464 100644 --- a/wire/modules/Fieldtype/FieldtypeComments/CommentArray.php +++ b/wire/modules/Fieldtype/FieldtypeComments/CommentArray.php @@ -260,7 +260,9 @@ class CommentArray extends PaginatedArray implements WirePaginatable { $count = 0; $stars = false; foreach($this as $comment) { + /** @var Comment $comment */ if(!$comment->stars) continue; + if($comment->status < Comment::statusApproved) continue; $total += $comment->stars; $count++; }