Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
d7978198
Commit
d7978198
authored
Mar 04, 2006
by
Steven Wittens
Browse files
-
#52403
: Comment order messed up on update.
parent
650f22bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
database/updates.inc
View file @
d7978198
...
...
@@ -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
,
'/'
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment