[-] CLASSES : Report Contry::getCountries() changes from 1.4 to 1.5

This commit is contained in:
gCharmes committed 2012-08-12 19:17:04 +00:00
1 parent b994dbc069
commit 663fb3114a
1 file changed
+1 -1
+1 -1
View File
@@ -131,7 +131,7 @@ class CountryCore extends ObjectModel
$countries[$country['id_country']] = $country; $countries[$country['id_country']] = $country;
if ($list_states) if ($list_states)
foreach (Db::getInstance(_PS_USE_SQL_SLAVE_)->ExecuteS('SELECT * FROM `'._DB_PREFIX_.'state` ORDER BY s.`name` ASC') as $state) foreach (Db::getInstance(_PS_USE_SQL_SLAVE_)->ExecuteS('SELECT * FROM `'._DB_PREFIX_.'state` ORDER BY `name` ASC') as $state)
if (isset($countries[$state['id_country']])) /* Does not keep the state if its country has been disabled and not selected */ if (isset($countries[$state['id_country']])) /* Does not keep the state if its country has been disabled and not selected */
$countries[$state['id_country']]['states'][] = $state; $countries[$state['id_country']]['states'][] = $state;