Fixed bug #844, admin can't upload avatar for user

git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3115 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Bart van Bragt 2002-11-27 20:57:13 +00:00
parent 1a7b28a2f8
commit 33ec3a07cb

View file

@ -436,7 +436,7 @@ if( $mode == 'edit' || $mode == 'save' && ( isset($HTTP_POST_VARS['username']) |
{ {
if( file_exists(@realpath($user_avatar_loc)) && ereg(".jpg$|.gif$|.png$", $user_avatar_name) ) if( file_exists(@realpath($user_avatar_loc)) && ereg(".jpg$|.gif$|.png$", $user_avatar_name) )
{ {
if( $user_avatar_size <= $board_config['avatar_filesize'] && $avatar_size > 0) if( $user_avatar_size <= $board_config['avatar_filesize'] && $user_avatar_size > 0)
{ {
$error_type = false; $error_type = false;