[-] MO : Not correct display of "date_add" for the discounts

This commit is contained in:
gBrunier
2011-05-03 08:53:37 +00:00
parent 6b5b375b4b
commit 5f0fb35a1d
+1 -2
View File
@@ -131,7 +131,6 @@ if ($ids_discount = LoyaltyModule::getDiscountByIdCustomer((int)($cookie->id_cus
foreach ($ids_discount AS $key => $discount)
{
$discounts[$key] = new Discount((int)$discount['id_discount'], (int)($cookie->id_lang));
$discounts[$key]->date_add = $discount['date_add'];
$discounts[$key]->orders = LoyaltyModule::getOrdersByIdDiscount((int)$discount['id_discount']);
}
}
@@ -166,4 +165,4 @@ $smarty->assign(array(
echo Module::display(dirname(__FILE__).'/loyalty.php', 'loyalty.tpl');
include(dirname(__FILE__).'/../../footer.php');
include(dirname(__FILE__).'/../../footer.php');