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

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15419 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
dMetzger
2012-05-19 10:32:38 +00:00
parent 1f555e5111
commit b5bc94f78c

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