From c41ae059e6074cca5949df99f02b10eaa9841c8d 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 --- 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';