Commit c154aff4 authored by Nigel McNie's avatar Nigel McNie

Use db_ilike() instead of hardcoding ILIKE, so MySQL can handle searching for...

Use db_ilike() instead of hardcoding ILIKE, so MySQL can handle searching for stuff in blocktypes in the view. Fixes #1788.
parent 30230392
......@@ -1202,7 +1202,7 @@ class View {
if ($search != '') {
$search = db_quote('%' . str_replace('%', '%%', $search) . '%');
$select .= 'AND (title ILIKE(' . $search . ') OR description ILIKE(' . $search . ') )';
$select .= 'AND (title ' . db_ilike() . '(' . $search . ') OR description ' . db_ilike() . '(' . $search . ') )';
}
$select .= $extraselect;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment