Skip to content

Commit

Permalink
[wpmlbridge-295] Adjust undefined variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
decodekult committed Apr 1, 2024
1 parent 1a78e2c commit dde6a43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Manager/DashboardStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@ public function logTotals( $totals ) {
);
}, $arrayMergers );

// Log las value provided
// Log last value provided
$replacers = [ 'end_date_time', 'end_time_gmt' ];
array_map( function( $key ) use ( $totals ) {
$this->status['totals'][ $key ] = empty( $partialTotals['end_date_time'] )
$this->status['totals'][ $key ] = empty( $totals['end_date_time'] )
? $this->status['totals'][ $key ]
: $totals[ $key ];
}, $replacers );
Expand Down

0 comments on commit dde6a43

Please sign in to comment.