Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Ceeram suggested this change #322 (comment)

  • Loading branch information...
commit 61b9d77b757726b8fd157c6591b095acfdee2a52 1 parent d6b9b48
@ingk ingk authored
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(
Please sign in to comment.
Something went wrong with that request. Please try again.