Making sure $attributes is an array in FormHelper::select()

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4613 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
nate 2007-03-14 23:05:19 +00:00
parent 729c75affe
commit 32887a68ec

View file

@ -596,7 +596,7 @@ class FormHelper extends AppHelper {
function select($fieldName, $options = array(), $selected = null, $attributes = array(), $showEmpty = '') {
$showParents = false;
$this->setFormTag($fieldName);
$attributes = $this->domId($attributes);
$attributes = $this->domId((array)$attributes);
if ($this->tagIsInvalid()) {
$attributes = $this->addClass($attributes, 'form-error');