From c1cf221773b7375d7bf728ce1ccda91d00ef6ede Mon Sep 17 00:00:00 2001 From: Peter Fabian Date: Fri, 16 Nov 2018 18:02:19 +0100 Subject: [PATCH] Fixed typos. --- .../data-stores/class-wc-admin-reports-data-store.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/woocommerce-admin/includes/data-stores/class-wc-admin-reports-data-store.php b/plugins/woocommerce-admin/includes/data-stores/class-wc-admin-reports-data-store.php index b899a7477cb..56e88652ade 100644 --- a/plugins/woocommerce-admin/includes/data-stores/class-wc-admin-reports-data-store.php +++ b/plugins/woocommerce-admin/includes/data-stores/class-wc-admin-reports-data-store.php @@ -586,7 +586,7 @@ class WC_Admin_Reports_Data_Store { $included_products = array_unique( array_merge( $included_products, $query_args['product_includes'] ) ); } } else { - $included_products = $query_args['products_includes']; + $included_products = $query_args['product_includes']; } } @@ -622,7 +622,7 @@ class WC_Admin_Reports_Data_Store { $included_products = $this->get_included_products( $query_args ); $excluded_products = $this->get_excluded_products( $query_args ); $subqueries = array(); - if ( $excluded_products ) { + if ( $included_products ) { $subqueries[] = "{$wpdb->prefix}wc_order_product_lookup.product_id IN ({$included_products})"; }