Fixing array key name in FormHelper::input()

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4301 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
nate 2007-01-17 20:07:35 +00:00
parent 0c2579c565
commit 9737072e27
2 changed files with 3 additions and 3 deletions

View file

@ -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 {

View file

@ -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'];