diff --git a/doc/ChangeLog b/doc/ChangeLog index ee1b8ade9a..a2672a5659 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -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. diff --git a/report_add.php b/report_add.php index e604e43521..61be31d0aa 100644 --- a/report_add.php +++ b/report_add.php @@ -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 ) ) {