Skip to content

Commit 9de1178

Browse files
committed
prevent outputting the table headers if the report is empty
1 parent 01cffbf commit 9de1178

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Search_Replace_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ public function __invoke( $args, $assoc_args ) {
369369
return;
370370
}
371371

372-
if ( $this->report ) {
372+
if ( $this->report && ! empty( $report ) ) {
373373
$table = new \cli\Table();
374374
$table->setHeaders( array( 'Table', 'Column', 'Replacements', 'Type' ) );
375375
$table->setRows( $report );

0 commit comments

Comments
 (0)