// Cart must not be null when given to a module
This commit is contained in:
@@ -413,6 +413,8 @@ class FrontControllerCore extends Controller
|
||||
public function initContent()
|
||||
{
|
||||
$this->process();
|
||||
if (!isset($this->context->cart))
|
||||
$this->context->cart = new Cart();
|
||||
$this->context->smarty->assign(array(
|
||||
'HOOK_HEADER' => Hook::exec('displayHeader'),
|
||||
'HOOK_TOP' => Hook::exec('displayTop'),
|
||||
|
||||
Reference in New Issue
Block a user