1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-09 10:16:36 +02:00

[ticket/12639] Delete entry in admin-log leads to mysql-error

PHPBB3-12639
This commit is contained in:
Tristan Darricau
2014-05-31 12:56:44 +02:00
parent f4dcb69dae
commit 36071ded9d
3 changed files with 2 additions and 6 deletions

View File

@@ -393,14 +393,14 @@ class log implements \phpbb\log\log_interface
$sql_where = 'WHERE log_type = ' . $log_type;
foreach ($conditions as $field => $field_value)
{
$sql_where .= ' AND ';
if ($field == 'keywords')
{
$sql_where .= $this->generate_sql_keyword($field_value, '', '');
}
else
{
$sql_where .= ' AND ';
if (is_array($field_value) && sizeof($field_value) == 2 && !is_array($field_value[1]))
{
$sql_where .= $field . ' ' . $field_value[0] . ' ' . $field_value[1];