[-] Classes : Bug fix : OrderOpcController, check instance of blocknewsletter module
This commit is contained in:
1 parent
29dd4ddd77
commit
38f3679302
1 file changed
+2
-1
@@ -357,7 +357,8 @@ class OrderOpcControllerCore extends ParentOrderController
|
|||||||
$this->_assignPayment();
|
$this->_assignPayment();
|
||||||
Tools::safePostVars();
|
Tools::safePostVars();
|
||||||
|
|
||||||
$this->context->smarty->assign('newsletter', (int)Module::getInstanceByName('blocknewsletter')->active);
|
$blocknewsletter = Module::getInstanceByName('blocknewsletter');
|
||||||
|
$this->context->smarty->assign('newsletter', (bool)($blocknewsletter && $blocknewsletter->active));
|
||||||
|
|
||||||
$this->_processAddressFormat();
|
$this->_processAddressFormat();
|
||||||
$this->setTemplate(_PS_THEME_DIR_.'order-opc.tpl');
|
$this->setTemplate(_PS_THEME_DIR_.'order-opc.tpl');
|
||||||
|
|||||||
Reference in new issue
Block a user