[Form] tweaked code (closes #855)
This commit is contained in:
parent
7cc2a7918c
commit
80a5074746
@ -152,13 +152,11 @@ class FormView implements \ArrayAccess, \IteratorAggregate, \Countable
|
|||||||
|
|
||||||
public function getIterator()
|
public function getIterator()
|
||||||
{
|
{
|
||||||
if (isset($this->children)) {
|
if (count($this->children)) {
|
||||||
$this->rendered = true;
|
$this->rendered = true;
|
||||||
|
|
||||||
return new \ArrayIterator($this->children);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return new \ArrayIterator(array());
|
return new \ArrayIterator($this->children);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function isChoiceGroup($choice)
|
public function isChoiceGroup($choice)
|
||||||
|
Reference in New Issue
Block a user