Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
eade0808
Commit
eade0808
authored
Dec 08, 2006
by
Dries
Browse files
- Patch
#102151
by robert douglass: removed unneeded 'GROUP BY' clause in thread-building code.
parent
5af37228
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/comment/comment.module
View file @
eade0808
...
...
@@ -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'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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