mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
50675f717e
commit
37d3aa1695
@ -1172,7 +1172,12 @@ class ViewableData_Iterator implements Iterator {
|
|||||||
* Get the next object.
|
* Get the next object.
|
||||||
*/
|
*/
|
||||||
public function next() {
|
public function next() {
|
||||||
return $this->show = false;
|
if($this->show) {
|
||||||
|
$this->show = false;
|
||||||
|
return $this->viewableData;
|
||||||
|
} else {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user