diff options
| author | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-09-17 19:48:40 +0000 |
|---|---|---|
| committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-09-17 19:48:40 +0000 |
| commit | 6c10063d31a675aaad03a2a1223eeb4278c805f6 (patch) | |
| tree | c6ac44b50c8fd5291f5248ed3bfa403f9a6c1418 /phpBB/profile.php | |
| parent | 3cbbd612c9890539c94a2618cf96891b7d7f3766 (diff) | |
| download | forums-6c10063d31a675aaad03a2a1223eeb4278c805f6.tar forums-6c10063d31a675aaad03a2a1223eeb4278c805f6.tar.gz forums-6c10063d31a675aaad03a2a1223eeb4278c805f6.tar.bz2 forums-6c10063d31a675aaad03a2a1223eeb4278c805f6.tar.xz forums-6c10063d31a675aaad03a2a1223eeb4278c805f6.zip | |
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
Diffstat (limited to 'phpBB/profile.php')
| -rw-r--r-- | phpBB/profile.php | 9 |
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=\"\" />" : " "; + 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 = " "; + } if( !empty($profiledata['user_icq']) ) { |
