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']) ) {