[+BUGFIX] Fluid (ViewHelpers): tweaked SelectViewHelper to avoid fatal error on PHP 5.2
authorBastian Waidelich <bastian@typo3.org>
Tue, 14 Dec 2010 18:01:11 +0000 (18:01 +0000)
committerBastian Waidelich <bastian@typo3.org>
Tue, 14 Dec 2010 18:01:11 +0000 (18:01 +0000)
Fixes: #8749

typo3/sysext/fluid/Classes/ViewHelpers/Form/SelectViewHelper.php

index 38acc73..deb8654 100644 (file)
@@ -167,7 +167,8 @@ class Tx_Fluid_ViewHelpers_Form_SelectViewHelper extends Tx_Fluid_ViewHelpers_Fo
                        return array();
                }
                $options = array();
-               foreach ($this->arguments['options'] as $key => $value) {
+               $optionsArgument = $this->arguments['options'];
+               foreach ($optionsArgument as $key => $value) {
                        if (is_object($value)) {
 
                                if ($this->arguments->hasArgument('optionValueField')) {