Skip to content

Commit

Permalink
Fixed warning message on report. Warning: Undefined variable: f_file_…
Browse files Browse the repository at this point in the history
…name ...

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@921 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
Kenzaburo Ito committed May 7, 2002
1 parent b666bc2 commit 1f09174
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/ChangeLog
Expand Up @@ -20,6 +20,7 @@ Mantis
* Fixed bug file upload error. Error message was misreported.
* Fixed project doc upload error. Error message was misreported.
* Fixed problem with bottom page menu not displaying when turned on.
* Fixed warning message on report. Warning: Undefined variable: f_file_name ...
* Modified accounts so that protected accounts are not accessible by the user.
* Modified report page formating.
* Modified file size reports to show up as bytes.
Expand Down
3 changes: 3 additions & 0 deletions report_add.php
Expand Up @@ -150,6 +150,9 @@
}
$f_file = trim( $f_file );
$disallowed = 0;
if ( !isset( $f_file_name ) ) {
$f_file_name = "";
}
if ( !file_type_check( $f_file_name ) ) {
$disallowed = 1;
} else if ( is_uploaded_file( $f_file ) ) {
Expand Down

0 comments on commit 1f09174

Please sign in to comment.