Skip to content

Commit

Permalink
file_get_content: return false on failure if file does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
mantis committed Oct 9, 2013
1 parent 8ba17be commit 288993b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/file_api.php
Expand Up @@ -951,6 +951,7 @@ function file_get_content( $p_file_id, $p_type = 'bug' ) {
}
return array( 'type' => $t_content_type, 'content' => file_get_contents( $t_local_disk_file ) );
}
return false;
break;
case FTP:
$t_local_disk_file = file_normalize_attachment_path( $row['diskfile'], $t_project_id );
Expand Down

0 comments on commit 288993b

Please sign in to comment.