Permalink
Browse files

Make sure the special is active

  • Loading branch information...
1 parent 1a65437 commit 6c82c0ca0479df6cfc2898278440e9a45a52948b @markkevans markkevans committed with haraldpdl May 8, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 catalog/includes/functions/general.php
@@ -108,7 +108,7 @@ function tep_get_products_name($product_id, $language = '') {
// Return a product's special price (returns nothing if there is no offer)
// TABLES: products
function tep_get_products_special_price($product_id) {
- $product_query = tep_db_query("select specials_new_products_price from " . TABLE_SPECIALS . " where products_id = '" . (int)$product_id . "' and status");
+ $product_query = tep_db_query("select specials_new_products_price from " . TABLE_SPECIALS . " where products_id = '" . (int)$product_id . "' and status = 1");
$product = tep_db_fetch_array($product_query);
return $product['specials_new_products_price'];

0 comments on commit 6c82c0c

Please sign in to comment.