diff --git a/includes/classes/CatalogCommand.php b/includes/classes/CatalogCommand.php index fc43e98..66a29cc 100644 --- a/includes/classes/CatalogCommand.php +++ b/includes/classes/CatalogCommand.php @@ -69,7 +69,7 @@ public function index( $args = [], $opts = [] ) { if ( is_wp_error( $result ) ) { $errors++; } else { - $updated += count( $result ); + $updated += count( $result['terms'] ?? [] ); } }