Permalink
Browse files

Ceeram suggested this change #322 (comment)

  • Loading branch information...
1 parent d6b9b48 commit 61b9d77b757726b8fd157c6591b095acfdee2a52 @ingk ingk committed Nov 24, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/View/Helper/FormHelper.php
View
2 lib/Cake/View/Helper/FormHelper.php
@@ -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(

0 comments on commit 61b9d77

Please sign in to comment.