diff options
Diffstat (limited to 'phpBB/profile.php')
| -rw-r--r-- | phpBB/profile.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/profile.php b/phpBB/profile.php index 4cd3d2b5ce..34745ac5ec 100644 --- a/phpBB/profile.php +++ b/phpBB/profile.php @@ -1493,7 +1493,8 @@ if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) ) // Let's do an overall check for settings/versions which would prevent // us from doing file uploads.... // - if( (get_cfg_var('file_uploads') == 0) || (strtolower(get_cfg_var('file_uploads')) == 'off')|| (phpversion() == '4.0.4pl1') || (!$board_config['allow_avatar_upload']) ) + $file_uploads = get_cfg_var('file_uploads'); + if( ($file_uploads == 0 && !empty($file_uploads)) || (strtolower($file_uploads) == 'off')|| (phpversion() == '4.0.4pl1') || (!$board_config['allow_avatar_upload']) ) { $form_enctype = ''; } @@ -2002,4 +2003,4 @@ if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) ) } } -?>
\ No newline at end of file +?> |
