|
From: Jonathan H. <the...@us...> - 2002-03-06 21:23:54
|
Update of /cvsroot/phpbb/phpBB2
In directory usw-pr-cvs1:/tmp/cvs-serv10702
Modified Files:
profile.php
Log Message:
Minor screw up in file upload checking.. If file_uploads is not set at all in the php.ini file then the check for get_cfg_var('file_uploads') == 0 would return true and say it was disabled, when in actuallity it was enabled.. Now check for it to empty as well... Empty as my head that is :D
Index: profile.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/profile.php,v
retrieving revision 1.186
retrieving revision 1.187
diff -C2 -r1.186 -r1.187
*** profile.php 2 Mar 2002 18:12:03 -0000 1.186
--- profile.php 6 Mar 2002 21:23:49 -0000 1.187
***************
*** 1494,1498 ****
// 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']) )
{
$form_enctype = '';
--- 1494,1499 ----
// us from doing file uploads....
//
! $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 = '';
***************
*** 2003,2005 ****
}
! ?>
\ No newline at end of file
--- 2004,2006 ----
}
! ?>
|