From fb46e42ab3393f3899c0aa8b6b4482214ec1d275 Mon Sep 17 00:00:00 2001 From: Tristan Darricau Date: Wed, 4 Jun 2014 20:22:22 +0200 Subject: [PATCH] [ticket/12639] Add a space in the code generated by generate_sql_keyword() PHPBB3-12639 --- phpBB/phpbb/log/log.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpBB/phpbb/log/log.php b/phpBB/phpbb/log/log.php index d2c946d28b..10efe5fd1c 100644 --- a/phpBB/phpbb/log/log.php +++ b/phpBB/phpbb/log/log.php @@ -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 ';