From 063ef750e263a019c34167a6c8e55c840daaa3f0 Mon Sep 17 00:00:00 2001 From: Gianluca Sforna Date: Mon, 29 Dec 2008 23:43:21 +0100 Subject: [PATCH] Fix 6309: RSS Author Email Tag always shows @example.com --- news_rss.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/news_rss.php b/news_rss.php index 64c0d0e1bd..e67e5edd12 100644 --- a/news_rss.php +++ b/news_rss.php @@ -144,13 +144,10 @@ $author = string_rss_links( user_get_name( $v_poster_id ) ); if ( access_has_global_level( config_get( 'show_user_email_threshold' ) ) ) { $t_author_email = user_get_field( $v_poster_id, 'email' ); - if ( is_blank( $t_author_email ) ) { - $t_author_email = $author . '@example.com'; + if ( ! is_blank( $t_author_email ) ) { + $author .= ' <' . $t_author_email . '>'; } - } else { - $t_author_email = $author . '@example.com'; } - $author .= ' <' . $t_author_email . '>'; # $comments = 'http://www.example.com/sometext.php?somevariable=somevalue&comments=1'; # url to comment page rss 2.0 value $comments = '';