Skip to content

Commit

Permalink
fix : PHP Notice: A non well formed numeric value encountered in .../…
Browse files Browse the repository at this point in the history
…srdb/srdb.cli.php on line 202
  • Loading branch information
afer92 authored Feb 28, 2020
1 parent c8dfccb commit 19e90ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions srdb.cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,12 @@ public function log( $type = '' ) {
break;
case 'search_replace_table_end':
list( $table, $report ) = $args;
$time = number_format( $report[ 'end' ] - $report[ 'start' ], 8 );
$time = number_format( floatval($report[ 'end' ]) - floatval($report[ 'start' ]), 8 );
$output .= "{$table}: {$report['rows']} rows, {$report['change']} changes found, {$report['updates']} updates made in {$time} seconds";
break;
case 'search_replace_end':
list( $search, $replace, $report ) = $args;
$time = number_format( $report[ 'end' ] - $report[ 'start' ], 8 );
$time = number_format( floatval($report[ 'end' ]) - floatval($report[ 'start' ]), 8 );
$dry_run_string = $this->dry_run ? "would have been" : "were";
$output .= "
Replacing {$search} with {$replace} on {$report['tables']} tables with {$report['rows']} rows
Expand Down

0 comments on commit 19e90ba

Please sign in to comment.