BUGFIX: fixed typo with nextRecord()

This commit is contained in:
Will Rossiter 2010-12-14 13:26:29 +13:00
parent 86055e3cfe
commit 635042875d

View File

@ -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);