Skip to content
This repository
Browse code

Ceeram suggested this change #322 (comment)

  • Loading branch information...
commit 61b9d77b757726b8fd157c6591b095acfdee2a52 1 parent d6b9b48
Christian Hieke authored November 24, 2011

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  lib/Cake/View/Helper/FormHelper.php
2  lib/Cake/View/Helper/FormHelper.php
@@ -1303,7 +1303,7 @@ public function radio($fieldName, $options = array(), $attributes = array()) {
1303 1303
 			if (isset($value) && $optValue == $value) {
1304 1304
 				$optionsHere['checked'] = 'checked';
1305 1305
 			}
1306  
-			if (!empty($disabled) && (is_bool($disabled) || in_array($optValue, $disabled))) {
  1306
+			if ($disabled && (!is_array($disabled) || in_array($optValue, $disabled))) {
1307 1307
 				$optionsHere['disabled'] = true;
1308 1308
 			}
1309 1309
 			$tagName = Inflector::camelize(

0 notes on commit 61b9d77

Please sign in to comment.
Something went wrong with that request. Please try again.