aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/profile.php9
1 files changed, 8 insertions, 1 deletions
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']) ) ? "<img src=\"" . $board_config['avatar_path'] . "/" . stripslashes($profiledata['user_avatar']) . "\" border=\"0\" alt=\"\" />" : "&nbsp;";
+ if($profiledata['user_avatar'] != "" && $profiledata['user_id'] != ANONYMOUS)
+ {
+ $avatar_img = (eregi("http", $profiledata['user_avatar']) && $board_config['allow_avatar_remote']) ? "<img src=\"" . $profiledata['user_avatar'] . "\">" : "<img src=\"" . $board_config['avatar_path'] . "/" . $profiledata['user_avatar'] . "\" alt=\"\" />";;
+ }
+ else
+ {
+ $avatar_img = "&nbsp;";
+ }
if( !empty($profiledata['user_icq']) )
{