diff --git a/controllers/front/DiscountController.php b/controllers/front/DiscountController.php
index a20a5e443..373a7aae5 100644
--- a/controllers/front/DiscountController.php
+++ b/controllers/front/DiscountController.php
@@ -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));
diff --git a/js/jquery/plugins/cluetip/jquery.cluetip.css b/js/jquery/plugins/cluetip/jquery.cluetip.css
index 335e03591..74408aa57 100755
--- a/js/jquery/plugins/cluetip/jquery.cluetip.css
+++ b/js/jquery/plugins/cluetip/jquery.cluetip.css
@@ -12,7 +12,7 @@
width: 43px;
height: 11px;
position: absolute;
- background-image: url('../img/loader.gif');
+ background-image: url('../../../../img/loader.gif');
}
.cluetip-arrows {
display: none;
diff --git a/modules/loyalty/config.xml b/modules/loyalty/config.xml
index c91c5bbb3..81ca85cda 100755
--- a/modules/loyalty/config.xml
+++ b/modules/loyalty/config.xml
@@ -1,13 +1,13 @@
-
';
echo $this->displayError($errors);
}
+// redirect($this->context->link);
}
}
@@ -246,7 +247,6 @@ class Loyalty extends Module
$this->instanceDefaultStates();
$this->_postProcess();
- $categories = Category::getCategories($this->context->language->id);
$order_states = OrderState::getOrderStates($this->context->language->id);
$currency = new Currency((int)(Configuration::get('PS_CURRENCY_DEFAULT')));
$defaultLanguage = (int)(Configuration::get('PS_LANG_DEFAULT'));
diff --git a/modules/loyalty/views/templates/front/loyalty.tpl b/modules/loyalty/views/templates/front/loyalty.tpl
index 6c2ad2d78..c6300973f 100644
--- a/modules/loyalty/views/templates/front/loyalty.tpl
+++ b/modules/loyalty/views/templates/front/loyalty.tpl
@@ -129,6 +129,9 @@
{/if}
+
+
+