This commit is contained in:
Christian Hieke 2011-11-24 09:41:58 +01:00
parent d6b9b48d4a
commit 61b9d77b75

View file

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