Skip to content

Commit

Permalink
Update class-sm-cli-sync.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Md. Alimuzzaman Alim committed Mar 20, 2020
1 parent af10b38 commit 43d6152
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cli/class-sm-cli-sync.php
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ private function _prepare() {
}
$this->batch = $args[ 'batch' ];
$this->batches = isset( $args[ 'batches' ] ) ? $args[ 'batches' ] : 10;
if( !is_numeric( $args[ 'batches' ] ) || $args[ 'batches' ] <= 0 ) {
if( !is_numeric( $this->batches ) || $this->batches <= 0 ) {
WP_CLI::error( 'Invalid parameter --batches' );
} elseif ( $this->batch > $this->batches ) {
WP_CLI::error( '--batch parameter must is invalid. It must not equal or less then --batches' );
Expand Down

0 comments on commit 43d6152

Please sign in to comment.