summaryrefslogtreecommitdiffstats
path: root/system/helpers/form_helper.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/helpers/form_helper.php')
-rw-r--r--system/helpers/form_helper.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/system/helpers/form_helper.php b/system/helpers/form_helper.php
index 5ba5b556c..146c0f588 100644
--- a/system/helpers/form_helper.php
+++ b/system/helpers/form_helper.php
@@ -931,6 +931,11 @@ if ( ! function_exists('_attributes_to_string'))
*/
function _attributes_to_string($attributes)
{
+ if (empty($attributes))
+ {
+ return '';
+ }
+
if (is_object($attributes))
{
$attributes = (array) $attributes;
@@ -950,7 +955,7 @@ if ( ! function_exists('_attributes_to_string'))
if (is_string($attributes))
{
- return ($attributes === '' ? '' : ' '.$attributes);
+ return ' '.$attributes;
}
return FALSE;