mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 23:37:39 +02:00
[feature/sql-bool-builder] Added code to use this feature for the WHERE clause
PHPBB3-13652
This commit is contained in:
@@ -774,7 +774,18 @@ abstract class driver implements driver_interface
|
|||||||
|
|
||||||
if (!empty($array['WHERE']))
|
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']))
|
if (!empty($array['GROUP_BY']))
|
||||||
|
Reference in New Issue
Block a user