diff --git a/cake/libs/validation.php b/cake/libs/validation.php index d4d83495b..848b2e567 100644 --- a/cake/libs/validation.php +++ b/cake/libs/validation.php @@ -600,7 +600,7 @@ class Validation extends Object { return $this->_check(); } - function ssn($check, $regex= null, $country = null) { + function ssn($check, $regex = null, $country = null) { if (is_array($check)) { $this->_extract($check); } else { diff --git a/cake/libs/view/helpers/form.php b/cake/libs/view/helpers/form.php index 5e6132250..61714fae5 100644 --- a/cake/libs/view/helpers/form.php +++ b/cake/libs/view/helpers/form.php @@ -392,7 +392,7 @@ class FormHelper extends AppHelper { $out = $before . $out . $between . $this->Html->file($tagName); break; case 'select': - $options = am(array('list' => array()), $options); + $options = am(array('options' => array()), $options); $list = $options['options']; unset($options['options']); $out = $before . $out . $between . $this->select($tagName, $list, $selected, $options, $empty); @@ -625,7 +625,7 @@ class FormHelper extends AppHelper { $selected = $this->__value($fieldName); } - if (isset($attributes) && array_key_exists("multiple", $attributes)) { + if (isset($attributes) && array_key_exists('multiple', $attributes)) { $tag = $this->Html->tags['selectmultiplestart']; } else { $tag = $this->Html->tags['selectstart'];