// Fix deprecated warning on product attribute create

This commit is contained in:
rGaillard
2012-01-09 09:56:53 +00:00
parent 7de689288b
commit 6b26792244
4 changed files with 104 additions and 176 deletions
+3 -2
View File
@@ -738,9 +738,10 @@ class WebserviceRequestCore
{
$sql = 'SELECT 1
FROM '._DB_PREFIX_.'webservice_account wsa LEFT JOIN '._DB_PREFIX_.'webservice_account_shop wsas ON (wsa.id_webservice_account = wsas.id_webservice_account)
WHERE wsa.key = \''.$key.'\'';
WHERE wsa.key = \''.pSQL($key).'\'';
foreach (self::$shopIDs as $id_shop)
$OR[] = ' wsas.id_shop = '.$id_shop.' ';
$OR[] = ' wsas.id_shop = '.(int)$id_shop.' ';
$sql .= ' AND ('.implode('OR', $OR).') ';
if (!Db::getInstance()->getValue($sql))
{