Skip to content

Commit

Permalink
SHOW_NEW_PRODUCTS_LIMIT is an int, not a string
Browse files Browse the repository at this point in the history
  • Loading branch information
scottcwilson committed Apr 13, 2024
1 parent a0135a2 commit 2698529
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/functions/functions_products.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,10 @@ function zen_get_new_date_range($time_limit = false)

$zc_new_date = date('Ymd', $date_range);
switch (true) {
case (SHOW_NEW_PRODUCTS_LIMIT === '0'):
case (SHOW_NEW_PRODUCTS_LIMIT === 0):
$new_range = '';
break;
case (SHOW_NEW_PRODUCTS_LIMIT === '1'):
case (SHOW_NEW_PRODUCTS_LIMIT === 1):
$zc_new_date = date('Ym', time()) . '01';
$new_range = ' AND p.products_date_added >= ' . $zc_new_date;
break;
Expand Down

0 comments on commit 2698529

Please sign in to comment.