+2009-10-28 Christian Kuhn <lolli@schwarzbu.ch>
+
+ * Follow-up to #12326: $label is already used, rename new variable to $optionLabel
+
2009-10-28 Dmitry Dulepov <dmitry.dulepov@gmail.com>
* Fixed bug #9795: Default values have no labels in the multiple select control inside the flexform
$html = t3lib_div::callUserFunction($config['itemsProcFunc'], $config, $this, '');
} else {
$html = '<select id="field_' . $fieldName . '" name="data[' . $fieldName . ']"' . $more . '>' . chr(10);
- foreach ($config['items'] as $key => $label) {
+ foreach ($config['items'] as $key => $optionLabel) {
$html .= '<option value="' . $key . '"' .
($value == $key ? ' selected="selected"' : '') .
- '>' . $this->getLabel($label,'',false) . '</option>' . chr(10);
+ '>' . $this->getLabel($optionLabel, '', false) . '</option>' . chr(10);
}
$html .= '</select>';
}