[ticket/12639] Add a space in the code generated by generate_sql_keyword()

PHPBB3-12639
This commit is contained in:
Tristan Darricau 2014-06-04 20:22:22 +02:00
parent f980fed5d2
commit fb46e42ab3

View file

@ -394,7 +394,7 @@ class log implements \phpbb\log\log_interface
if (isset($conditions['keywords']))
{
$sql_where .= $this->generate_sql_keyword($conditions['keywords'], '', ' AND');
$sql_where .= $this->generate_sql_keyword($conditions['keywords'], '');
unset($conditions['keywords']);
}
@ -782,7 +782,7 @@ class log implements \phpbb\log\log_interface
}
}
$sql_keywords = $statement_operator . ' (';
$sql_keywords = ' ' . $statement_operator . ' (';
if (!empty($operations))
{
$sql_keywords .= $this->db->sql_in_set($table_alias . 'log_operation', $operations) . ' OR ';