diff options
Diffstat (limited to 'system/helpers/form_helper.php')
-rw-r--r-- | system/helpers/form_helper.php | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/system/helpers/form_helper.php b/system/helpers/form_helper.php index 4a4a7c89f..6f7e63b32 100644 --- a/system/helpers/form_helper.php +++ b/system/helpers/form_helper.php @@ -609,13 +609,7 @@ if ( ! function_exists('form_label')) $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>'; } |