diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-06-30 09:57:57 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-06-30 09:57:57 +0000 |
commit | 98e504e8f4af3b62d1ae76c7a5a73e1493e11bcc (patch) | |
tree | 589a0537ba00e5c2e7f8209a5204eade6221d74f /modules | |
parent | 8f817bf9a845dc2a023d5ee59e10ee380cbe9523 (diff) | |
download | brdo-98e504e8f4af3b62d1ae76c7a5a73e1493e11bcc.tar.gz brdo-98e504e8f4af3b62d1ae76c7a5a73e1493e11bcc.tar.bz2 |
- Patch #26966 by catch: fixed query.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/comment/comment.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module index e4d6e43b6..28815fafe 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -1398,7 +1398,7 @@ function comment_get_display_ordinal($cid, $node_type) { // For flat comments, cid is used for ordering comments due to // unpredicatable behavior with timestamp, so we make the same assumption // here. - $query->condition('c1.cid', 'c2.cid', '<'); + $query->condition('c1.cid', $cid, '<'); } else { // For threaded comments, the c.thread column is used for ordering. We can |