summaryrefslogtreecommitdiff
path: root/modules/comment.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-12-04 20:53:19 +0000
committerDries Buytaert <dries@buytaert.net>2003-12-04 20:53:19 +0000
commitd45bf0f1e7614e961ed45d85a99e126def3edf64 (patch)
treea8c02a2aac5aab0e1cd0a16a908befff18b3b5c9 /modules/comment.module
parenta5f76cd53ea14ec9bc73a59b6a9d06845d849818 (diff)
downloadbrdo-d45bf0f1e7614e961ed45d85a99e126def3edf64.tar.gz
brdo-d45bf0f1e7614e961ed45d85a99e126def3edf64.tar.bz2
- Patch 185 by Ax: fixed undefined variables, synchronized xtemplate with sf, etc.
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() {