Browse Source

Merge pull request #1597 from aread22/master

Potential Fix for LightHouse Ticket #3936

Fixes #3936
Mark Story 12 years ago
parent
commit
f191ff017b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lib/Cake/View/Helper/FormHelper.php

+ 2 - 1
lib/Cake/View/Helper/FormHelper.php

@@ -1520,8 +1520,9 @@ class FormHelper extends AppHelper {
 			);
 
 			if ($label) {
-				$optTitle = $this->Html->useTag('label', $tagName, '', $optTitle);
+				$optTitle = $this->label($tagName, $optTitle, is_array($label) ? $label : null);
 			}
+			
 			if (is_array($between)) {
 				$optTitle .= array_shift($between);
 			}