mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
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:
@@ -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;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user