diff --git a/api/soap/mc_api.php b/api/soap/mc_api.php index 737b8037b2..0a8db1138c 100644 --- a/api/soap/mc_api.php +++ b/api/soap/mc_api.php @@ -1192,7 +1192,9 @@ function error_get_stack_trace() { #remove the call to this function from the stack trace foreach( $t_stack as $t_frame ) { - $t_trace .= ( isset( $t_frame['file'] ) ? basename( $t_frame['file'] ) : 'UnknownFile' ) . ' L' . ( isset( $t_frame['line'] ) ? $t_frame['line'] : '?' ) . ' ' . ( isset( $t_frame['function'] ) ? $t_frame['function'] : 'UnknownFunction' ); + $t_trace .= ( isset( $t_frame['file'] ) ? basename( $t_frame['file'] ) : 'UnknownFile' ) + . ' L' . ( isset( $t_frame['line'] ) ? $t_frame['line'] : '?' ) + . ' ' . ( isset( $t_frame['function'] ) ? $t_frame['function'] : 'UnknownFunction' ); $t_args = array(); if( isset( $t_frame['params'] ) && ( count( $t_frame['params'] ) > 0 ) ) { @@ -1215,7 +1217,9 @@ function error_get_stack_trace() { array_shift( $t_stack ); #remove the call to the error handler from the stack trace foreach( $t_stack as $t_frame ) { - $t_trace .= ( isset( $t_frame['file'] ) ? basename( $t_frame['file'] ) : 'UnknownFile' ) . ' L' . ( isset( $t_frame['line'] ) ? $t_frame['line'] : '?' ) . ' ' . ( isset( $t_frame['function'] ) ? $t_frame['function'] : 'UnknownFunction' ); + $t_trace .= ( isset( $t_frame['file'] ) ? basename( $t_frame['file'] ) : 'UnknownFile' ) + . ' L' . ( isset( $t_frame['line'] ) ? $t_frame['line'] : '?' ) + . ' ' . ( isset( $t_frame['function'] ) ? $t_frame['function'] : 'UnknownFunction' ); $t_args = array(); if( isset( $t_frame['args'] ) ) { diff --git a/core/bug_api.php b/core/bug_api.php index ccf5af268b..aec48806d0 100644 --- a/core/bug_api.php +++ b/core/bug_api.php @@ -744,7 +744,10 @@ function update( $p_update_extended = false, $p_bypass_mail = false ) { history_log_event_direct( $c_bug_id, 'sponsorship_total', $t_old_data->sponsorship_total, $this->sponsorship_total ); history_log_event_direct( $c_bug_id, 'sticky', $t_old_data->sticky, $this->sticky ); - history_log_event_direct( $c_bug_id, 'due_date', ( $t_old_data->due_date != date_get_null() ) ? $t_old_data->due_date : null, ( $this->due_date != date_get_null() ) ? $this->due_date : null ); + history_log_event_direct( $c_bug_id, 'due_date', + ( $t_old_data->due_date != date_get_null() ) ? $t_old_data->due_date : null, + ( $this->due_date != date_get_null() ) ? $this->due_date : null + ); # Update extended info if requested if( $p_update_extended ) {