From 2b3e74baaa91c8bee9b44c757c5ef1cafda45529 Mon Sep 17 00:00:00 2001 From: vChabot Date: Wed, 28 Sep 2011 07:31:45 +0000 Subject: [PATCH] // fix error git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8824 b9a71923-0436-4b27-9f14-aed3839534dd --- 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);