mirror of
https://github.com/silverstripe/silverstripe-comments
synced 2024-10-22 11:05:49 +02:00
BUGFIX: fixed typo with nextRecord()
This commit is contained in:
parent
86055e3cfe
commit
635042875d
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user