Merge pull request #1228 from hector-cortez/BUG-10411
BUG 10411 Problemas con caracteres especiales en campos tipo suggest SOLVED
This commit is contained in:
@@ -46,7 +46,7 @@ function array_sort ($array, $on, $order = SORT_ASC, $query = '')
|
|||||||
if ($query == '') {
|
if ($query == '') {
|
||||||
$new_array[] = $array[$k];
|
$new_array[] = $array[$k];
|
||||||
} else {
|
} else {
|
||||||
if (preg_match( "/" . $query . "/i", $array[$k]['userFullname'] )) {
|
if (preg_match( "/" . preg_quote($query, '/') . "/i", $array[$k]['userFullname'] )) {
|
||||||
$new_array[] = $array[$k];
|
$new_array[] = $array[$k];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user