summaryrefslogtreecommitdiff
path: root/modules/comment/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'modules/comment/helpers')
-rw-r--r--modules/comment/helpers/comment_rss.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/comment/helpers/comment_rss.php b/modules/comment/helpers/comment_rss.php
index b539887b..4424981d 100644
--- a/modules/comment/helpers/comment_rss.php
+++ b/modules/comment/helpers/comment_rss.php
@@ -42,10 +42,9 @@ class comment_rss_Core {
$comments->where("item_id", $id);
}
- $comments = $comments->find_all($limit, $offset);
$feed->view = "comment.mrss";
$feed->children = array();
- foreach ($comments as $comment) {
+ foreach ($comments->find_all($limit, $offset) as $comment) {
$item = $comment->item();
$feed->children[] = new ArrayObject(
array("pub_date" => date("D, d M Y H:i:s T", $comment->created),