From 335be2e59fe9f5b63391a04ce7d79af56a4801a0 Mon Sep 17 00:00:00 2001 From: brunoais Date: Thu, 12 Nov 2015 06:52:34 +0000 Subject: [PATCH] [feature/sql-bool-builder] Fixing typos in previous commit PHPBB3-13652 --- phpBB/phpbb/db/driver/driver.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpBB/phpbb/db/driver/driver.php b/phpBB/phpbb/db/driver/driver.php index c7305e61a7..a65d8caa52 100644 --- a/phpBB/phpbb/db/driver/driver.php +++ b/phpBB/phpbb/db/driver/driver.php @@ -830,7 +830,7 @@ abstract class driver implements driver_interface { $operation = $operations_ary[self::LOGICAL_OP]; - foreach ($operations_ary[1] as &$condition) + foreach ($operations_ary[self::LOGICAL_OP] as &$condition) { switch ($condition[self::LOGICAL_OP]) { @@ -859,7 +859,7 @@ abstract class driver implements driver_interface case 'NOT_IN': // As this is used with an IN, assume it is a set of elements for sql_in_set() - $condition = $this->sql_in_set($condition[self::LEFT_STMT], $condition[self::RIGHT_STMT], $condition[Cself::OMPARE_OP] === 'NOT_IN', true); + $condition = $this->sql_in_set($condition[self::LEFT_STMT], $condition[self::RIGHT_STMT], $condition[self::COMPARE_OP] === 'NOT_IN', true); break;