Skip to content

Commit

Permalink
Fixed #16
Browse files Browse the repository at this point in the history
  • Loading branch information
Swader committed Jun 16, 2015
1 parent cb8ceae commit 27eb8e9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#Changelog
All notable changes will be documented in this file

## 0.4.4 - June 16th, 2015

- [Bug] Fixed #16

## 0.4.3 - June 16th, 2015

- [Bug] Fixed #15
Expand Down
6 changes: 5 additions & 1 deletion src/Entity/EntityIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ public function next()

public function valid()
{
return ($this->cursor <= max(array_keys($this->data)));
if (count($this->data)) {
return ($this->cursor <= max(array_keys($this->data)));
} else {
return false;
}
}

protected function _getZerothEntity()
Expand Down

0 comments on commit 27eb8e9

Please sign in to comment.