diff --git a/phpBB/profile.php b/phpBB/profile.php
index 93066c62f5..2d4c4908b8 100644
--- a/phpBB/profile.php
+++ b/phpBB/profile.php
@@ -257,6 +257,8 @@ if(isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']))
$email_img = $lang['Hidden_email'];
}
+ $avatar_img = ( !empty($profiledata['user_avatar']) ) ? "
" : " ";
+
if($members[$i]['user_icq'])
{
$icq_status_img = "
";
@@ -306,7 +308,7 @@ if(isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']))
"LOCATION" => ( ($profiledatas['user_from']) ? stripslashes($profiledata['user_from']) : "" ),
"OCCUPATION" => ( ($profiledata['user_occ']) ? stripslashes($profiledata['user_occ']) : "" ),
"INTERESTS" => ( ($profiledata['user_interests']) ? stripslashes($profiledata['user_interests']) : "" ),
- "AVATAR_IMG" => "
",
+ "AVATAR_IMG" => $avatar_img,
"L_VIEWING_PROFILE" => $lang['Viewing_profile_of'],
"L_PER_DAY" => $lang['posts_per_day'],