// Merge -> 10309
This commit is contained in:
+2
-1
@@ -135,7 +135,8 @@ class AddressCore extends ObjectModel
|
||||
/* Get and cache address country name */
|
||||
if ($this->id)
|
||||
{
|
||||
$result = Db::getInstance()->getRow('SELECT `name` FROM `'._DB_PREFIX_.'country_lang`
|
||||
$result = Db::getInstance()->getRow('
|
||||
SELECT `name` FROM `'._DB_PREFIX_.'country_lang`
|
||||
WHERE `id_country` = '.(int)$this->id_country.'
|
||||
AND `id_lang` = '.($id_lang ? (int)$id_lang : Configuration::get('PS_LANG_DEFAULT')));
|
||||
$this->country = $result['name'];
|
||||
|
||||
Reference in New Issue
Block a user