[-] Classes : #PSFV-634 : BugFix Currency was not set for loyalty discounts

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14110 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
fGaillard
2012-03-13 17:06:42 +00:00
parent 998ef4263e
commit 7a6339d50f
6 changed files with 22 additions and 16 deletions
+2 -1
View File
@@ -42,8 +42,9 @@ class DiscountControllerCore extends FrontController
$discounts = Discount::getCustomerDiscounts($this->context->language->id, $this->context->customer->id, true, false);
$nbDiscounts = 0;
foreach ($discounts as $discount)
if ($discount['quantity_for_user'])
if (isset($discount['quantity_for_user']) && $discount['quantity_for_user'])
$nbDiscounts++;
$this->context->smarty->assign(array('nbDiscounts' => (int)($nbDiscounts), 'discount' => $discounts));