Update of /cvsroot/mantisbt/mantisbt
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21274
Modified Files:
proj_doc_update.php
Log Message:
fix for 0005492: APPLICATION ERROR #500 after updated from 0.19.2
- also 5530
- critical change is in core/php_api.php, others are cleanup
Index: proj_doc_update.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/proj_doc_update.php,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- proj_doc_update.php 5 Apr 2005 16:26:29 -0000 1.27
+++ proj_doc_update.php 28 Apr 2005 14:05:38 -0000 1.28
@@ -48,13 +48,17 @@
if ( is_uploaded_file( $v_tmp_name ) ) {
if ( php_version_at_least( '4.2.0' ) ) {
- switch ( $v_error ) {
+ switch ( (int) $v_error ) {
case UPLOAD_ERR_INI_SIZE:
case UPLOAD_ERR_FORM_SIZE:
trigger_error( ERROR_FILE_TOO_BIG, ERROR );
+ break;
case UPLOAD_ERR_PARTIAL:
case UPLOAD_ERR_NO_FILE:
trigger_error( ERROR_FILE_NO_UPLOAD_FAILURE, ERROR );
+ break;
+ default:
+ break;
}
}
-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix
|