Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use FormHelper->label instead of HtmlHelper->useTag

Implementing suggested fix by mark_story
  • Loading branch information...
commit cb056a5cbeb9760a91af229d2a6b9b95a79b50b6 1 parent 4ab1c8c
@aread22 aread22 authored
Showing with 1 addition and 5 deletions.
  1. +1 −5 lib/Cake/View/Helper/FormHelper.php
View
6 lib/Cake/View/Helper/FormHelper.php
@@ -1520,11 +1520,7 @@ public function radio($fieldName, $options = array(), $attributes = array()) {
);
if ($label) {
- if (is_array($label)) {
- $optTitle = $this->label($tagName, $optTitle, $label);
- } else {
- $optTitle = $this->Html->useTag('label', $tagName, '', $optTitle);
- }
+ $optTitle = $this->label($tagName, $optTitle, is_array($label) ? $label : null);
}
if (is_array($between)) {
Please sign in to comment.
Something went wrong with that request. Please try again.