Skip to content

Commit

Permalink
Fixed error when not using aggregations.
Browse files Browse the repository at this point in the history
  • Loading branch information
swhammack committed Oct 29, 2014
1 parent 65d9871 commit 177914a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ElasticquentResultCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function __construct($results, $instance)
$this->timed_out = $results['timed_out'];
$this->shards = $results['_shards'];
$this->hits = $results['hits'];
$this->aggregations = $results['aggregations'];
$this->aggregations = isset($results['aggregations']) ? $results['aggregations'] : array();

// Now we need to assign our hits to the
// items in the collection.
Expand Down

0 comments on commit 177914a

Please sign in to comment.