[-] FO : Fix bug #PSCFV-9171, can not order with a unactivated country

This commit is contained in:
gRoussac
2013-05-24 17:21:56 +02:00
parent a28a8598ba
commit 95e46afc99
2 changed files with 10 additions and 2 deletions
+5
View File
@@ -237,6 +237,8 @@ class AddressCore extends ObjectModel
*/
public static function getZoneById($id_address)
{
if(!isset($id_address) || empty($id_address))
return false;
if (isset(self::$_idZones[$id_address]))
return self::$_idZones[$id_address];
@@ -259,6 +261,9 @@ class AddressCore extends ObjectModel
*/
public static function isCountryActiveById($id_address)
{
if(!isset($id_address) || empty($id_address))
return false;
if (!$result = Db::getInstance(_PS_USE_SQL_SLAVE_)->getRow('
SELECT c.`active`
FROM `'._DB_PREFIX_.'address` a