Merge pull request #20423 from rnaby/070618-123409-wc-product-data-store-cpt

Condition Checking Improved
This commit is contained in:
Mike Jolley 2018-06-07 10:17:00 +01:00 committed by GitHub
commit f671c23fe3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1398,7 +1398,7 @@ class WC_Product_Data_Store_CPT extends WC_Data_Store_WP implements WC_Object_Da
} }
} }
if ( $search_queries ) { if ( ! empty( $search_queries ) ) {
$search_where = 'AND (' . implode( ') OR (', $search_queries ) . ')'; $search_where = 'AND (' . implode( ') OR (', $search_queries ) . ')';
} }