[-] BO : remove sprintf() which are unnecessary

This commit is contained in:
lLefevre
2012-03-29 08:31:28 +00:00
parent 1b4093ba12
commit ba4e1a2baf
6 changed files with 12 additions and 24 deletions
+1 -7
View File
@@ -641,13 +641,7 @@ class ShopCore extends ObjectModel
*/
public static function getShopById($id, $identifier, $table)
{
$sql = sprintf('
SELECT `id_shop`, `%s`
FROM `'._DB_PREFIX_.'%s_shop`
WHERE `%s` = %d',
pSQL($identifier), pSQL($table), pSQL($identifier), $id);
return Db::getInstance()->executeS($sql);
return Db::getInstance()->executeS('SELECT `id_shop`, `'.pSQL($identifier).'` FROM `'._DB_PREFIX_.pSQL($table).'_shop` WHERE `'.pSQL($identifier).'` = '.(int)$id);
}
public static function setContext($type, $id = null)