mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[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
This commit is contained in:
parent
51737be616
commit
5d70f612be
1 changed files with 2 additions and 0 deletions
|
@ -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')
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue