2018-03-15
This commit is contained in:
parent
3f031dba46
commit
3d3f4596af
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ class Filter extends Action
|
|||
break;
|
||||
case 'LIKE':
|
||||
$where[] = "u.{$field} LIKE ?{$fields[$field]}";
|
||||
$vars[] = \str_replace(['*', '_'], ['%', '\\_'], $rule[1]);
|
||||
$vars[] = \str_replace(['%', '*', '_'], ['\\%', '%', '\\_'], $rule[1]);
|
||||
break;
|
||||
default:
|
||||
throw new InvalidArgumentException('The condition is not clear');
|
||||
|
|
Loading…
Add table
Reference in a new issue