From 6c10063d31a675aaad03a2a1223eeb4278c805f6 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Mon, 17 Sep 2001 19:48:40 +0000 Subject: [PATCH] Found an issue with remote avatars I thought I'd solved ages ago ... hhmmm git-svn-id: file:///svn/phpbb/trunk@1056 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/profile.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/phpBB/profile.php b/phpBB/profile.php index 9b0245098b..431732ab50 100644 --- a/phpBB/profile.php +++ b/phpBB/profile.php @@ -231,7 +231,14 @@ if(isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode'])) $email_img = ""; } - $avatar_img = ( !empty($profiledata['user_avatar']) ) ? "\"\"" : " "; + if($profiledata['user_avatar'] != "" && $profiledata['user_id'] != ANONYMOUS) + { + $avatar_img = (eregi("http", $profiledata['user_avatar']) && $board_config['allow_avatar_remote']) ? "" : "\"\"";; + } + else + { + $avatar_img = " "; + } if( !empty($profiledata['user_icq']) ) {