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
46a6e08c
Commit
46a6e08c
authored
Dec 01, 2006
by
Dries Buytaert
Browse files
- Patch
#51314
by kjartan, eafarris, et al: hide the last comment block if there are no comments.
parent
9460c930
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/comment/comment.module
View file @
46a6e08c
...
...
@@ -178,7 +178,9 @@ function theme_comment_block() {
while
(
$comment
=
db_fetch_object
(
$result
))
{
$items
[]
=
l
(
$comment
->
subject
,
'node/'
.
$comment
->
nid
,
NULL
,
NULL
,
'comment-'
.
$comment
->
cid
)
.
'<br />'
.
t
(
'@time ago'
,
array
(
'@time'
=>
format_interval
(
time
()
-
$comment
->
timestamp
)));
}
return theme('item_list', $items);
if
(
$items
)
{
return
theme
(
'item_list'
,
$items
);
}
}
/**
...
...
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