mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02: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:
@@ -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')
|
||||
{
|
||||
|
Reference in New Issue
Block a user