1
0
mirror of synced 2024-12-13 06:46:03 +03:00

[2.0] Simplifying code.

This commit is contained in:
romanb 2009-07-01 13:08:24 +00:00
parent 8ccb7df1bb
commit 01147039d4
2 changed files with 2 additions and 6 deletions

View File

@ -61,9 +61,7 @@ class ECommerceCart
if ($this->customer !== null) {
$customer = $this->customer;
$this->customer = null;
if ($customer->getCart() !== null) {
$customer->removeCart();
}
$customer->removeCart();
}
}

View File

@ -68,9 +68,7 @@ class ECommerceCustomer
if ($this->cart !== null) {
$cart = $this->cart;
$this->cart = null;
if ($cart->getCustomer() !== null) {
$cart->removeCustomer();
}
$cart->removeCustomer();
}
}
}