Permalink
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...
1 parent 638a04b commit 89a8b1c061bf7ea486fcd526bd94b92cb0bff723 @dregad dregad committed Oct 24, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/file_api.php
View
2 core/file_api.php
@@ -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'];

0 comments on commit 89a8b1c

Please sign in to comment.