Skip to content

Commit 27eb8e9

Browse files
committed
Fixed #16
1 parent cb8ceae commit 27eb8e9

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#Changelog
22
All notable changes will be documented in this file
33

4+
## 0.4.4 - June 16th, 2015
5+
6+
- [Bug] Fixed #16
7+
48
## 0.4.3 - June 16th, 2015
59

610
- [Bug] Fixed #15

src/Entity/EntityIterator.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,11 @@ public function next()
6565

6666
public function valid()
6767
{
68-
return ($this->cursor <= max(array_keys($this->data)));
68+
if (count($this->data)) {
69+
return ($this->cursor <= max(array_keys($this->data)));
70+
} else {
71+
return false;
72+
}
6973
}
7074

7175
protected function _getZerothEntity()

0 commit comments

Comments
 (0)