Skip to content

Commit

Permalink
Break long lines
Browse files Browse the repository at this point in the history
  • Loading branch information
dregad committed Aug 25, 2019
1 parent 7ab90f6 commit 380fc71
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
8 changes: 6 additions & 2 deletions api/soap/mc_api.php
Expand Up @@ -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 ) ) {
Expand All @@ -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'] ) ) {
Expand Down
5 changes: 4 additions & 1 deletion core/bug_api.php
Expand Up @@ -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 ) {
Expand Down

0 comments on commit 380fc71

Please sign in to comment.