diff --git a/code/dataobjects/Comment.php b/code/dataobjects/Comment.php index d4b80a1..f0ec588 100755 --- a/code/dataobjects/Comment.php +++ b/code/dataobjects/Comment.php @@ -44,7 +44,7 @@ class Comment extends DataObject { $comments = DB::query("SELECT * FROM \"PageComment\""); if($comments) { - while($pageComment = $comments->numRecord()) { + while($pageComment = $comments->nextRecord()) { // create a new comment from the older page comment $comment = new Comment($pageComment);