summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/comment/comment.module2
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