Merge pull request #182 from oddnoc/patch-1

BUG: Fix infinite loop in requireDefaultRecords()
This commit is contained in:
Damian Mooyman 2016-03-31 17:49:44 +13:00
commit 9f527ef54d

View File

@ -132,7 +132,7 @@ class Comment extends DataObject
$comments = DB::query('SELECT * FROM "PageComment"'); $comments = DB::query('SELECT * FROM "PageComment"');
if ($comments) { if ($comments) {
while ($pageComment = $comments->nextRecord()) { while ($pageComment = $comments->next()) {
// create a new comment from the older page comment // create a new comment from the older page comment
$comment = new Comment(); $comment = new Comment();
$comment->update($pageComment); $comment->update($pageComment);