From 32887a68ec3250e2a20c8583e4824e53951cc963 Mon Sep 17 00:00:00 2001 From: nate Date: Wed, 14 Mar 2007 23:05:19 +0000 Subject: [PATCH] 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 --- cake/libs/view/helpers/form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cake/libs/view/helpers/form.php b/cake/libs/view/helpers/form.php index 926200442..9eae752a4 100644 --- a/cake/libs/view/helpers/form.php +++ b/cake/libs/view/helpers/form.php @@ -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');