Skip to content

Commit

Permalink
[TASK] Avoid E_NOTICE from array_pop in AbstractFormContainer->last()
Browse files Browse the repository at this point in the history
  • Loading branch information
NamelessCoder committed Jul 14, 2016
1 parent 44ef6f2 commit d4785a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Classes/Form/AbstractFormContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ public function get($childName, $recursive = false, $requiredClass = null)
*/
public function last()
{
$result = array_pop(iterator_to_array($this->children));
$asArray = iterator_to_array($this->children);
$result = array_pop($asArray);
return $result;
}

Expand Down

0 comments on commit d4785a6

Please sign in to comment.