Fixing DOM ID's for HtmlHelper::selectTag() (Ticket #1847)

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4256 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
nate 2007-01-05 23:17:05 +00:00
parent b8c51fee44
commit b5309bb017

View file

@ -629,7 +629,7 @@ class HtmlHelper extends AppHelper {
* @param boolean $show_empty If true, the empty select option is shown
* @return string Formatted SELECT element
*/
function selectTag($fieldName, $optionElements, $selected = null, $selectAttr = null, $optionAttr = null, $showEmpty = true) {
function selectTag($fieldName, $optionElements, $selected = array(), $selectAttr = array(), $optionAttr = array(), $showEmpty = true) {
$this->setFormTag($fieldName);
if ($this->tagIsInvalid()) {
if (isset($selectAttr['class']) && trim($selectAttr['class']) != "") {