mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
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:
parent
729c75affe
commit
32887a68ec
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Reference in a new issue