Merge pull request #5130 from aroche/patch-2

Allow arbitrary strings as extra attributes in form_label
diff --git a/system/helpers/form_helper.php b/system/helpers/form_helper.php
index a49eea8..75c6e5d 100644
--- a/system/helpers/form_helper.php
+++ b/system/helpers/form_helper.php
@@ -610,13 +610,7 @@
 			$label .= ' for="'.$id.'"';
 		}
 
-		if (is_array($attributes) && count($attributes) > 0)
-		{
-			foreach ($attributes as $key => $val)
-			{
-				$label .= ' '.$key.'="'.$val.'"';
-			}
-		}
+		$label .= _attributes_to_string($attributes);
 
 		return $label.'>'.$label_text.'</label>';
 	}