Adding fix for Ticket #1527

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3937 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2006-11-23 10:17:05 +00:00
parent 282ca26319
commit c41db64070

View file

@ -333,7 +333,7 @@ class FormHelper extends AppHelper {
$showEmpty = ''; $showEmpty = '';
} }
$options = array_reverse($options, true); $options = array_reverse($options, true);
$options[] = $showEmpty; $options[''] = $showEmpty;
$options = array_reverse($options, true); $options = array_reverse($options, true);
} }
$select = am($select, $this->__selectOptions(array_reverse($options, true), $selected, array(), $showParents)); $select = am($select, $this->__selectOptions(array_reverse($options, true), $selected, array(), $showParents));