From d45bf0f1e7614e961ed45d85a99e126def3edf64 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 4 Dec 2003 20:53:19 +0000 Subject: - Patch 185 by Ax: fixed undefined variables, synchronized xtemplate with sf, etc. --- modules/comment.module | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/comment.module') 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() { -- cgit v1.2.3