[feature/sql-bool-builder] Added code to use this feature for the WHERE clause

PHPBB3-13652
This commit is contained in:
brunoais 2015-02-25 07:55:24 +00:00
parent b54adaaabe
commit 46de946904

View file

@ -774,7 +774,18 @@ abstract class driver implements driver_interface
if (!empty($array['WHERE']))
{
$sql .= ' WHERE ' . $this->_sql_custom_build('WHERE', $array['WHERE']);
$sql .= ' WHERE ';
if (is_array($array['WHERE']))
{
$sql_where = $this->_process_boolean_tree_first($array['WHERE']);
}
else
{
$sql_where = $array['WHERE'];
}
$sql .= $this->_sql_custom_build('WHERE', $sql_where);
}
if (!empty($array['GROUP_BY']))