// small bug fix on BO orders

This commit is contained in:
dMetzger
2012-08-14 09:15:50 +00:00
parent 06aa7e859c
commit a1d1158af1
3 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -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);