// clean code

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14541 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
aFolletete committed 2012-04-07 16:32:55 +00:00
1 parent acdb080f59
commit 296a6431f7
1 file changed
+1 -3
+1 -3
View File
@@ -274,9 +274,7 @@ class CurrencyCore extends ObjectModel
$query = Currency::getIdByQuery($id_shop); $query = Currency::getIdByQuery($id_shop);
$query->where('iso_code = \''.pSQL($iso_code).'\''); $query->where('iso_code = \''.pSQL($iso_code).'\'');
$result = Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue($query->build()); return (int)Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue($query->build());
return (int)$result['id_currency'];
} }
/** /**