From b5309bb017024107ff00a9500145b3d90573cc4d Mon Sep 17 00:00:00 2001 From: nate Date: Fri, 5 Jan 2007 23:17:05 +0000 Subject: [PATCH] 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 --- cake/libs/view/helpers/html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cake/libs/view/helpers/html.php b/cake/libs/view/helpers/html.php index 0d09dc3d2..a379d95b9 100644 --- a/cake/libs/view/helpers/html.php +++ b/cake/libs/view/helpers/html.php @@ -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']) != "") {