mirror of
https://github.com/silverstripe/silverstripe-comments
synced 2024-10-22 11:05:49 +02:00
Merge pull request #182 from oddnoc/patch-1
BUG: Fix infinite loop in requireDefaultRecords()
This commit is contained in:
commit
9f527ef54d
@ -132,7 +132,7 @@ class Comment extends DataObject
|
||||
$comments = DB::query('SELECT * FROM "PageComment"');
|
||||
|
||||
if ($comments) {
|
||||
while ($pageComment = $comments->nextRecord()) {
|
||||
while ($pageComment = $comments->next()) {
|
||||
// create a new comment from the older page comment
|
||||
$comment = new Comment();
|
||||
$comment->update($pageComment);
|
||||
|
Loading…
Reference in New Issue
Block a user