- #52403: Comment order messed up on update.

4.7.x
Steven Wittens 2006-03-04 22:38:51 +00:00
parent 650f22bc7f
commit d797819821
1 changed files with 1 additions and 1 deletions

View File

@ -1566,7 +1566,7 @@ function system_update_172() {
include_once './modules/comment.module';
$limit = 20;
$result = db_query_range("SELECT cid, thread FROM {comments} WHERE cid > %d", $_SESSION['system_update_172'], 0, $limit);
$result = db_query_range("SELECT cid, thread FROM {comments} WHERE cid > %d ORDER BY cid ASC", $_SESSION['system_update_172'], 0, $limit);
while ($comment = db_fetch_object($result)) {
$_SESSION['system_update_172'] = $comment->cid;
$thread = explode('.', rtrim($comment->thread, '/'));