[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:
brunoais 2015-03-01 11:39:20 +00:00
parent 51737be616
commit 5d70f612be

View file

@ -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')
{