diff --git a/modules/loyalty/loyalty.php b/modules/loyalty/loyalty.php index fc562a5f9..691fd6c99 100644 --- a/modules/loyalty/loyalty.php +++ b/modules/loyalty/loyalty.php @@ -236,7 +236,7 @@ class Loyalty extends Module private function voucherCategories($categories) { $cat = ''; - if ($categories) + if ($categories && is_array($categories)) foreach ($categories as $category) $cat .= $category.','; return rtrim($cat, ','); @@ -247,187 +247,11 @@ class Loyalty extends Module $this->instanceDefaultStates(); $this->_postProcess(); - $order_states = OrderState::getOrderStates($this->context->language->id); - $currency = new Currency((int)(Configuration::get('PS_CURRENCY_DEFAULT'))); - $id_lang_default = (int)Configuration::get('PS_LANG_DEFAULT'); - $languages = Language::getLanguages(false); - $languageIds = 'voucher_details¤default_loyalty_state¤none_award_loyalty_state¤convert_loyalty_state¤validation_loyalty_state¤cancel_loyalty_state'; - - $this->html .= ' - -
';
- $html .= '
-