Skip to content

Commit

Permalink
Merge pull request #17 from bearow/master
Browse files Browse the repository at this point in the history
Fixed elastic for false values to be searchable
  • Loading branch information
andsalves committed Nov 7, 2017
2 parents 8976032 + d2d1948 commit 27415ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Connection/ElasticConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ private function unsetEmpties(array $haystack) {
$haystack[$key] = $this->$selfFn($haystack[$key]);
}

if (empty($haystack[$key])) {
if (is_array($haystack[$key]) && empty($haystack[$key])) {
unset($haystack[$key]);
}
}
Expand Down

0 comments on commit 27415ba

Please sign in to comment.