diff --git a/classes/ProductSale.php b/classes/ProductSale.php index d264a1ef9..cc1922ef0 100644 --- a/classes/ProductSale.php +++ b/classes/ProductSale.php @@ -67,7 +67,7 @@ class ProductSaleCore if ($nb_products < 1) $nb_products = 10; $final_order_by = $order_by; if (is_null($order_by) || $order_by == 'position' || $order_by == 'price') $order_by = 'sales'; - if (is_null($order_way) || $order_by == 'sales') $order_way == 'DESC'; + if (is_null($order_way) || $order_by == 'sales') $order_way = 'DESC'; $groups = FrontController::getCurrentCustomerGroups(); $sql_groups = (count($groups) ? 'IN ('.implode(',', $groups).')' : '= 1'); $interval = Validate::isUnsignedInt(Configuration::get('PS_NB_DAYS_NEW_PRODUCT')) ? Configuration::get('PS_NB_DAYS_NEW_PRODUCT') : 20;