mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Unify search criteria case insensitive
This commit is contained in:
parent
f1f984614f
commit
c6921efdce
@ -760,7 +760,11 @@ function mysql_db_format_array_where_clause_sql($values, $join='AND', $prefix=fa
|
||||
if ($field[0] != '`') {
|
||||
// If the field is as <table>.<field>, don't scape.
|
||||
if (strstr($field, '.') === false) {
|
||||
$field = '`'.$field.'`';
|
||||
if (preg_match('/(UPPER|LOWER)(.+)/mi', $field)) {
|
||||
$field = preg_replace('/(UPPER|LOWER])\((.+)\)/mi', '$1(`$2`)', $field);
|
||||
} else {
|
||||
$field = '`'.$field.'`';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user