// small bug fix on BO orders
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16842 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -737,9 +737,9 @@ class CustomerCore extends ObjectModel
|
||||
$this->logged = 0;
|
||||
}
|
||||
|
||||
public function getLastCart()
|
||||
public function getLastCart($with_order = true)
|
||||
{
|
||||
$carts = Cart::getCustomerCarts((int)$this->id);
|
||||
$carts = Cart::getCustomerCarts((int)$this->id, $with_order);
|
||||
if (!count($carts))
|
||||
return false;
|
||||
$cart = array_shift($carts);
|
||||
|
||||
Reference in New Issue
Block a user