Skip to content

Commit

Permalink
Ceeram suggested this change #322 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
ingk committed Nov 24, 2011
1 parent d6b9b48 commit 61b9d77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/View/Helper/FormHelper.php
Expand Up @@ -1303,7 +1303,7 @@ public function radio($fieldName, $options = array(), $attributes = array()) {
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(
Expand Down

0 comments on commit 61b9d77

Please sign in to comment.