aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db/driver/driver.php
diff options
context:
space:
mode:
authorbrunoais <brunoaiss@gmail.com>2015-03-01 11:39:20 +0000
committerbrunoais <brunoaiss@gmail.com>2015-03-16 11:14:32 +0000
commit5d70f612be113336d6a85146369232c87d1b069b (patch)
tree824768b0d639ac5b5e08403cd570b52fa944d14a /phpBB/phpbb/db/driver/driver.php
parent51737be6162584209b483f97daa87ce9d3c039b0 (diff)
downloadforums-5d70f612be113336d6a85146369232c87d1b069b.tar
forums-5d70f612be113336d6a85146369232c87d1b069b.tar.gz
forums-5d70f612be113336d6a85146369232c87d1b069b.tar.bz2
forums-5d70f612be113336d6a85146369232c87d1b069b.tar.xz
forums-5d70f612be113336d6a85146369232c87d1b069b.zip
[feature/sql-bool-builder] Explain better the code in the first
Explain what that if and check is for in the first method that is called. PHPBB3-13652
Diffstat (limited to 'phpBB/phpbb/db/driver/driver.php')
-rw-r--r--phpBB/phpbb/db/driver/driver.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/phpBB/phpbb/db/driver/driver.php b/phpBB/phpbb/db/driver/driver.php
index d2bb5f4f7c..cda2f7f86d 100644
--- a/phpBB/phpbb/db/driver/driver.php
+++ b/phpBB/phpbb/db/driver/driver.php
@@ -807,6 +807,8 @@ abstract class driver implements driver_interface
protected function _process_boolean_tree_first($operations_ary)
{
+ // In cases where an array exists but there is no head condition,
+ // it should be because there's only 1 WHERE clause. This seems the best way to deal with it.
if ($operations_ary[0] !== 'AND' &&
$operations_ary[0] !== 'OR')
{