mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
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:
parent
0c2579c565
commit
9737072e27
2 changed files with 3 additions and 3 deletions
|
@ -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 {
|
||||
|
|
|
@ -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'];
|
||||
|
|
Loading…
Reference in a new issue