Improved behaviour of ViewableData_Iterator. It's not clear why, but this was causing a bug on our build slave. Maybe a PHP version difference?

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@60178 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2008-08-08 04:58:31 +00:00
parent 50675f717e
commit 37d3aa1695

View File

@ -1172,7 +1172,12 @@ class ViewableData_Iterator implements Iterator {
* Get the next object.
*/
public function next() {
return $this->show = false;
if($this->show) {
$this->show = false;
return $this->viewableData;
} else {
return null;
}
}
/**