summaryrefslogtreecommitdiffstats
path: root/system/helpers
diff options
context:
space:
mode:
authoraroche <aroche@users.noreply.github.com>2017-05-24 15:30:05 +0200
committerGitHub <noreply@github.com>2017-05-24 15:30:05 +0200
commita785a4f2d1c8137ac82062d5b52cf7b6f575a72f (patch)
tree6ddb0baa1c04d71cad45d0455eb5523dafc04aea /system/helpers
parent362c0a14a987d6462e4062a5fc34099446f9e14f (diff)
fix bad attribute handling of form_label
When passing a string for extra attributes in form_label helper function, these attributes were skipped.
Diffstat (limited to 'system/helpers')
-rw-r--r--system/helpers/form_helper.php8
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>';
}