Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

XML export: fix system notice

Use of incorrect variable caused invalid XML file generation due to PHP
system notice being added to output
  • Loading branch information...
commit 89a8b1c061bf7ea486fcd526bd94b92cb0bff723 1 parent 638a04b
Damien Regad dregad authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  core/file_api.php
2  core/file_api.php
View
@@ -1021,7 +1021,7 @@ function file_get_content( $p_file_id, $p_type = 'bug' ) {
$result = db_query_bound( $query, array( $p_file_id ) );
$row = db_fetch_array( $result );
- if ( $f_type == 'bug' ) {
+ if( $p_type == 'bug' ) {
$t_project_id = bug_get_field( $row['bug_id'], 'project_id' );
} else {
$t_project_id = $row['bug_id'];
Please sign in to comment.
Something went wrong with that request. Please try again.