Skip to content

Commit

Permalink
missing {}
Browse files Browse the repository at this point in the history
  • Loading branch information
SiR-DanieL committed Apr 9, 2015
1 parent 56b1699 commit 8046aa5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion includes/wc-product-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,9 @@ function wc_get_product_ids_on_sale() {
$product_ids_on_sale = get_transient( 'wc_products_onsale' );

// Valid cache found
if ( false !== $product_ids_on_sale )
if ( false !== $product_ids_on_sale ) {
return $product_ids_on_sale;
}

$on_sale_posts = $wpdb->get_results( "
SELECT post.ID, post.post_parent FROM `$wpdb->posts` AS post
Expand Down

0 comments on commit 8046aa5

Please sign in to comment.