Commit 96f210f0 by Qiang Xue

better fix for #1959.

parent 777e22c1
......@@ -1135,7 +1135,7 @@ class BaseHtml
$options['uncheck'] = '0';
}
$checked = $value == $options['value'];
$checked = "$value" === "{$options['value']}";
if (!array_key_exists('id', $options)) {
$options['id'] = static::getInputId($model, $attribute);
......@@ -1177,7 +1177,7 @@ class BaseHtml
$options['uncheck'] = '0';
}
$checked = $value == $options['value'];
$checked = "$value" === "{$options['value']}";
if (!array_key_exists('id', $options)) {
$options['id'] = static::getInputId($model, $attribute);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment