summaryrefslogtreecommitdiff
path: root/modules/comment.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/comment.module')
-rw-r--r--modules/comment.module3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/comment.module b/modules/comment.module
index 14a6223fe..6e7ab5471 100644
--- a/modules/comment.module
+++ b/modules/comment.module
@@ -777,6 +777,7 @@ function comment_perm() {
}
function comment_link($type, $node = 0, $main = 0) {
+ $links = array();
if ($type == "node" && $node->comment) {
@@ -849,7 +850,7 @@ function comment_link($type, $node = 0, $main = 0) {
menu("comment", t("comments"), "comment_page", 0, 1);
}
- return $links ? $links : array();
+ return $links;
}
function comment_page() {