Skip to content

Commit

Permalink
Be sure ids is an array.
Browse files Browse the repository at this point in the history
  • Loading branch information
wcatron committed May 2, 2016
1 parent 19ee9ca commit 6ed3578
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DocumentArray.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function toDocument(&$document) {
}

public function fromDocument($document) {
$this->ids = $document[$this->key];
$this->ids = (array)$document[$this->key];
}

public function setModifier(&$modifier) {
Expand Down

0 comments on commit 6ed3578

Please sign in to comment.