From 0e1ccae1a1fa78d75dcd763556019b52ca2a4c40 Mon Sep 17 00:00:00 2001 From: saxmatt Date: Sun, 8 Jun 2003 10:12:50 +0000 Subject: [PATCH] fixed bug in comment_author_link. git-svn-id: http://svn.automattic.com/wordpress/trunk@193 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- b2-include/b2template.functions.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/b2-include/b2template.functions.php b/b2-include/b2template.functions.php index db42ce4c82..be8dc58a8e 100644 --- a/b2-include/b2template.functions.php +++ b/b2-include/b2template.functions.php @@ -979,16 +979,19 @@ function comment_author_link() { $author = stripslashes(&$comment->comment_author); $url = str_replace('http://url', '', $url); - - if (empty($url) && empty($email)) return $author; + + if (empty($url) && empty($email)) { + echo $author; + return; + } echo '' . $author . ''; }