Skip to content

Commit

Permalink
Merge branch 'master-2.24'
Browse files Browse the repository at this point in the history
  • Loading branch information
dregad committed Apr 1, 2020
2 parents 32e4728 + 0df0a29 commit 6f9ef8e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions core/file_api.php
Expand Up @@ -893,10 +893,11 @@ function file_add( $p_bug_id, array $p_file, $p_table = 'bug', $p_title = '', $p
'filesize' => $t_file_size,
'file_type' => $p_file['type'],
'date_added' => $p_date_added,
'user_id' => (int)$p_user_id,
'bugnote_id' => is_null( $p_bugnote_id ) ? null : (int)$p_bugnote_id
'user_id' => (int)$p_user_id
);

if( 'bug' == $p_table ) {
$t_param['bugnote_id'] = is_null( $p_bugnote_id ) ? null : (int)$p_bugnote_id;
}
# Oracle has to update BLOBs separately
if( !db_is_oracle() ) {
$t_param['content'] = $c_content;
Expand Down

0 comments on commit 6f9ef8e

Please sign in to comment.