Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
andsalves committed Nov 7, 2017
2 parents 89febb4 + 27415ba commit e93feaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Connection/ElasticConnection.php
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 e93feaf

Please sign in to comment.