mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[feature/sql-bool-builder] Added code to use this feature for the WHERE clause
PHPBB3-13652
This commit is contained in:
parent
b54adaaabe
commit
46de946904
1 changed files with 12 additions and 1 deletions
|
@ -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']))
|
||||
|
|
Loading…
Add table
Reference in a new issue