|
@@ -369,7 +369,10 @@ function ViewMemberlist()
|
|
|
// Replace the wildcard characters ('*' and '?') into MySQL ones.
|
|
|
$parameter = strtolower(strtr($smcFunc['htmlspecialchars']($search_params[$param_name], ENT_QUOTES), array('%' => '\%', '_' => '\_', '*' => '%', '?' => '_')));
|
|
|
|
|
|
- $query_parts[] = '(' . implode( ' LIKE {string:' . $param_name . '_normal} OR ', $param_info['db_fields']) . ' LIKE {string:' . $param_name . '_normal})';
|
|
|
+ if ($smcFunc['db_case_sensitive'])
|
|
|
+ $query_parts[] = '(LOWER(' . implode( ') LIKE {string:' . $param_name . '_normal} OR LOWER(', $param_info['db_fields']) . ') LIKE {string:' . $param_name . '_normal})';
|
|
|
+ else
|
|
|
+ $query_parts[] = '(' . implode( ' LIKE {string:' . $param_name . '_normal} OR ', $param_info['db_fields']) . ' LIKE {string:' . $param_name . '_normal})';
|
|
|
$where_params[$param_name . '_normal'] = '%' . $parameter . '%';
|
|
|
}
|
|
|
}
|