[ticket/10751] Use sql_lower_text() in view_log(). log_data is a text column.

PHPBB3-10751
This commit is contained in:
Andreas Fischer 2012-05-31 11:48:56 +02:00
parent 643a86504a
commit 9ab5ad2986

View file

@ -2557,7 +2557,8 @@ function view_log($mode, &$log, &$log_count, $limit = 0, $offset = 0, $forum_id
{
$sql_keywords .= $db->sql_in_set('l.log_operation', $operations) . ' OR ';
}
$sql_keywords .= 'LOWER(l.log_data) ' . implode(' OR LOWER(l.log_data) ', $keywords) . ')';
$sql_lower = $db->sql_lower_text('l.log_data');
$sql_keywords .= "$sql_lower " . implode(" OR $sql_lower ", $keywords) . ')';
}
if ($log_count !== false)