// Cart must not be null when given to a module

This commit is contained in:
dMetzger
2012-05-19 10:32:38 +00:00
parent 5325344720
commit 85af79620f

View File

@@ -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'),