Merge branch 'master' of github.com:thelia/thelia

This commit is contained in:
Manuel Raynaud
2014-03-07 09:37:29 +01:00

View File

@@ -250,7 +250,14 @@ class Session extends BaseSession
*/ */
public function getOrder() public function getOrder()
{ {
return $this->get("thelia.order"); $order = $this->get("thelia.order");
if (null === $order) {
$order = new Order();
$this->setOrder($order);
}
return $order;
} }
/** /**