From 48d4488816028303fbb6e3ec4acf7036ed44ea0e Mon Sep 17 00:00:00 2001 From: vChabot Date: Wed, 28 Sep 2011 07:31:45 +0000 Subject: [PATCH] // fix error --- classes/Customer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Customer.php b/classes/Customer.php index 738b21ad6..da66face3 100644 --- a/classes/Customer.php +++ b/classes/Customer.php @@ -527,7 +527,7 @@ class CustomerCore extends ObjectModel if (!$cart) $cart = Context::getContext()->cart; if (!$cart OR !$cart->{Configuration::get('PS_TAX_ADDRESS_TYPE')}) - $id_address = (int)(Db::getInstance()->getValue('SELECT `id_address` FROM `'._DB_PREFIX_.'address` WHERE `id_customer` = '.(int)($id_customer).' AND `deleted` = 0 ORDER BY `id`')); + $id_address = (int)(Db::getInstance()->getValue('SELECT `id_address` FROM `'._DB_PREFIX_.'address` WHERE `id_customer` = '.(int)($id_customer).' AND `deleted` = 0 ORDER BY `id_address`')); else $id_address = $cart->{Configuration::get('PS_TAX_ADDRESS_TYPE')}; $ids = Address::getCountryAndState($id_address);