Skip to content

Commit 5008b0c

Browse files
authored
Merge pull request #62 from piliugin/fix-like-filtering
fix "like" filtering
2 parents 31943bc + f241b62 commit 5008b0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/actions/IndexAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ protected function getFilter()
118118
$attributeMap = [];
119119
foreach ($requestParams as $attribute => $value) {
120120
$attributeMap[$attribute] = Inflector::camel2id(Inflector::variablize($attribute), '_');
121-
if (strpos($value, ',') !== false) {
121+
if (is_string($value) && strpos($value, ',') !== false) {
122122
$requestParams[$attribute] = ['in' => explode(',', $value)];
123123
}
124124
}

0 commit comments

Comments
 (0)