Ensure array has values Closes #2900.

This commit is contained in:
Mike Jolley 2013-04-08 19:02:47 +01:00
parent aaefe73942
commit 91e1622b91
1 changed files with 1 additions and 0 deletions

View File

@ -77,6 +77,7 @@ class WC_Widget_Onsale extends WP_Widget {
// Get products on sale
$product_ids_on_sale = woocommerce_get_product_ids_on_sale();
$product_ids_on_sale[] = 0;
$meta_query = array();
$meta_query[] = $woocommerce->query->visibility_meta_query();