Skip to content

Commit

Permalink
Merge branch 'master-2.13'
Browse files Browse the repository at this point in the history
  • Loading branch information
atrol committed Apr 27, 2018
2 parents 5a22933 + e92176e commit a96bf27
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 3 additions & 0 deletions core.php
Expand Up @@ -82,6 +82,9 @@
die();
}

# Ensure that encoding is always UTF-8 independant from any PHP default or ini setting
mb_internal_encoding('UTF-8');

ob_start();

# Load Composer autoloader
Expand Down
6 changes: 1 addition & 5 deletions core/commands/IssueNoteAddCommand.php
Expand Up @@ -243,11 +243,7 @@ protected function process() {
}

# Handle the file upload
if( count( $this->files > 0 ) ) {
$t_file_infos = file_attach_files( $this->issue->id, $this->files );
} else {
$t_file_infos = array();
}
$t_file_infos = file_attach_files( $this->issue->id, $this->files );

# We always set the note time to BUGNOTE, and the API will overwrite it with TIME_TRACKING
# if time tracking is not 0 and the time tracking feature is enabled.
Expand Down
2 changes: 1 addition & 1 deletion core/file_api.php
Expand Up @@ -64,7 +64,7 @@
*/
function file_attach_files( $p_bug_id, $p_files ) {
if( $p_files === null || count( $p_files ) == 0 ) {
return;
return array();
}

$t_file_infos = array();
Expand Down

0 comments on commit a96bf27

Please sign in to comment.