fix: [behavior:metaField] Wildcard searches now work if the wildcare is placed in front

pull/93/head
Sami Mokaddem 2021-11-10 12:06:04 +01:00
parent acd80e2f18
commit 549d9f3e1b
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ class MetaFieldsBehavior extends Behavior
if (substr($value, 0, 1) == '!') {
$value = substr($value, 1);
$exp->notEq($field, $value);
} else if (strpos($value, '%') != false) {
} else if (strpos($value, '%') !== false) {
$exp->like($field, $value);
} else {
$exp->eq($field, $value);