Skip to content

Commit

Permalink
Remove warnings in HTTP transport for search
Browse files Browse the repository at this point in the history
Fixes an undefined variable warning in `ElasticSearch\Transport\HTTP::search()` when no query is specified.
Closes #39
  • Loading branch information
nervetattoo committed Apr 25, 2014
1 parent 4045c40 commit f5d1772
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ElasticSearch/Transport/HTTP.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public function index($document, $id=false, array $options = array()) {
* @param array $options
*/
public function search($query, array $options = array()) {
$result = false;
if (is_array($query)) {
/**
* Array implies using the JSON query DSL
Expand Down

0 comments on commit f5d1772

Please sign in to comment.