aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db/driver/driver.php
diff options
context:
space:
mode:
authorbrunoais <brunoaiss@gmail.com>2015-02-28 18:14:00 +0000
committerbrunoais <brunoaiss@gmail.com>2015-03-16 11:14:32 +0000
commit51737be6162584209b483f97daa87ce9d3c039b0 (patch)
tree2563ea4a3f9366cdfa48d156f32d48bdf903ad6b /phpBB/phpbb/db/driver/driver.php
parent5c1850e10e0e31e4f72cc16c657e37bb009659df (diff)
downloadforums-51737be6162584209b483f97daa87ce9d3c039b0.tar
forums-51737be6162584209b483f97daa87ce9d3c039b0.tar.gz
forums-51737be6162584209b483f97daa87ce9d3c039b0.tar.bz2
forums-51737be6162584209b483f97daa87ce9d3c039b0.tar.xz
forums-51737be6162584209b483f97daa87ce9d3c039b0.zip
[feature/sql-bool-builder] Also use parenthesis for the NOT operator
Be on the safe side, also use parenthesis for the NOT operator PHPBB3-13652
Diffstat (limited to 'phpBB/phpbb/db/driver/driver.php')
-rw-r--r--phpBB/phpbb/db/driver/driver.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/db/driver/driver.php b/phpBB/phpbb/db/driver/driver.php
index f66f10322b..d2bb5f4f7c 100644
--- a/phpBB/phpbb/db/driver/driver.php
+++ b/phpBB/phpbb/db/driver/driver.php
@@ -831,7 +831,7 @@ abstract class driver implements driver_interface
break;
case 'NOT':
- $condition = ' NOT ' . $this->_process_boolean_tree($condition);
+ $condition = ' NOT (' . $this->_process_boolean_tree($condition) . ') ';
break;