// removing bqSQL from a SQL request

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14412 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vChabot
2012-04-02 14:59:15 +00:00
parent 8cb35dc9b1
commit f183239ad5
+2 -2
View File
@@ -178,14 +178,14 @@ class AdminAccessControllerCore extends AdminController
UPDATE `'._DB_PREFIX_.'access` a
'.$join.'
SET `view` = '.(int)$enabled.', `add` = '.(int)$enabled.', `edit` = '.(int)$enabled.', `delete` = '.(int)$enabled.'
WHERE '.bqSQL($where).' = '.(int)$id_tab.'
WHERE '.$where.' = '.(int)$id_tab.'
AND `id_profile` = '.(int)$id_profile;
else
$sql = '
UPDATE `'._DB_PREFIX_.'access` a
'.$join.'
SET `'.bqSQL($perm).'` = '.(int)$enabled.'
WHERE '.bqSQL($where).' = '.(int)$id_tab.'
WHERE '.$where.' = '.(int)$id_tab.'
AND `id_profile` = '.(int)$id_profile;
$res = Db::getInstance()->execute($sql) ? 'ok' : 'error';