From 02235a87cdd1f77cc651784fd1d3846fda4183d7 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 24 Nov 2009 18:28:46 +0000 Subject: Bug #54275 - Do not link to user profile in ATOM feed entry if post has been made by the guest user. Authorised by: bantu git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10288 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/feed.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'phpBB/feed.php') diff --git a/phpBB/feed.php b/phpBB/feed.php index a3f194ea33..767922676f 100644 --- a/phpBB/feed.php +++ b/phpBB/feed.php @@ -812,7 +812,7 @@ class phpbb_feed { global $user; - $user_link = '' . $row['username'] . ''; + $user_link = ($row['user_id'] != ANONYMOUS) ? '' . $row['username'] . '' : $row['username']; $time = ($this->topic_id) ? $row['post_time'] : $row['topic_time']; @@ -965,7 +965,7 @@ class phpbb_feed_news extends phpbb_feed { global $user; - $user_link = '' . $row[$this->get('creator')] . ''; + $user_link = ($row[$this->get('author_id')] != ANONYMOUS) ? '' . $row[$this->get('creator')] . '' : $row[$this->get('creator')]; $item_row['statistics'] = $user->lang['POSTED'] . ' ' . $user->lang['POST_BY_AUTHOR'] . ' ' . $user_link . ' ' . $this->separator_stats . ' ' . $user->format_date($row['topic_time']) @@ -1066,7 +1066,7 @@ class phpbb_feed_topics extends phpbb_feed { global $user; - $user_link = '' . $row[$this->get('creator')] . ''; + $user_link = ($row[$this->get('author_id')] != ANONYMOUS) ? '' . $row[$this->get('creator')] . '' : $row[$this->get('creator')]; $item_row['statistics'] = $user->lang['POSTED'] . ' ' . $user->lang['POST_BY_AUTHOR'] . ' ' . $user_link . ' ' . $this->separator_stats . ' ' . $user->format_date($row['topic_time']) -- cgit v1.2.1