summaryrefslogtreecommitdiff
path: root/modules/comment/comment.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-12-08 15:32:10 +0000
committerDries Buytaert <dries@buytaert.net>2006-12-08 15:32:10 +0000
commiteade0808a303b1078271443ee293365dd2c3f49e (patch)
treeedacce58e8e45c2bc1018979ceb95d3e4832d900 /modules/comment/comment.module
parent5af372289cc172299d0f3cf15408835f8baf1cd7 (diff)
downloadbrdo-eade0808a303b1078271443ee293365dd2c3f49e.tar.gz
brdo-eade0808a303b1078271443ee293365dd2c3f49e.tar.bz2
- Patch #102151 by robert douglass: removed unneeded 'GROUP BY' clause in thread-building code.
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r--modules/comment/comment.module4
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 0607f2931..f75c9399c 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -831,7 +831,7 @@ function comment_render($node, $cid = 0) {
$query .= ' AND c.status = %d';
$query_args[] = COMMENT_PUBLISHED;
}
- $query .= ' GROUP BY c.cid, c.pid, c.nid, c.subject, c.comment, c.format, c.timestamp, c.name, c.mail, u.picture, c.homepage, u.uid, u.name, u.picture, u.data, c.score, c.users, c.status';
+
$result = db_query($query, $query_args);
if ($comment = db_fetch_object($result)) {
@@ -858,8 +858,6 @@ function comment_render($node, $cid = 0) {
$query_args[] = COMMENT_PUBLISHED;
}
- $query .= ' GROUP BY c.cid, c.pid, c.nid, c.subject, c.comment, c.format, c.timestamp, c.name, c.mail, u.picture, c.homepage, u.uid, u.name, u.picture, u.data, c.score, c.users, c.thread, c.status';
-
if ($order == COMMENT_ORDER_NEWEST_FIRST) {
if ($mode == COMMENT_MODE_FLAT_COLLAPSED || $mode == COMMENT_MODE_FLAT_EXPANDED) {
$query .= ' ORDER BY c.timestamp DESC';