From f183239ad516d4ee74564f321b5a273f98848911 Mon Sep 17 00:00:00 2001 From: vChabot Date: Mon, 2 Apr 2012 14:59:15 +0000 Subject: [PATCH] // 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 --- controllers/admin/AdminAccessController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/admin/AdminAccessController.php b/controllers/admin/AdminAccessController.php index 9a39ffac5..dd27d63d3 100644 --- a/controllers/admin/AdminAccessController.php +++ b/controllers/admin/AdminAccessController.php @@ -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';