mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +00:00
Ceeram suggested this change https://github.com/cakephp/cakephp/pull/322#issuecomment-2780158
This commit is contained in:
parent
d6b9b48d4a
commit
61b9d77b75
1 changed files with 1 additions and 1 deletions
|
@ -1303,7 +1303,7 @@ class FormHelper extends AppHelper {
|
|||
if (isset($value) && $optValue == $value) {
|
||||
$optionsHere['checked'] = 'checked';
|
||||
}
|
||||
if (!empty($disabled) && (is_bool($disabled) || in_array($optValue, $disabled))) {
|
||||
if ($disabled && (!is_array($disabled) || in_array($optValue, $disabled))) {
|
||||
$optionsHere['disabled'] = true;
|
||||
}
|
||||
$tagName = Inflector::camelize(
|
||||
|
|
Loading…
Add table
Reference in a new issue