summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--system/helpers/form_helper.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/system/helpers/form_helper.php b/system/helpers/form_helper.php
index 6fca73f85..5ba5b556c 100644
--- a/system/helpers/form_helper.php
+++ b/system/helpers/form_helper.php
@@ -931,11 +931,6 @@ if ( ! function_exists('_attributes_to_string'))
*/
function _attributes_to_string($attributes)
{
- if (is_string($attributes))
- {
- return ($attributes === '' ? '' : ' '.$attributes);
- }
-
if (is_object($attributes))
{
$attributes = (array) $attributes;
@@ -953,6 +948,11 @@ if ( ! function_exists('_attributes_to_string'))
return $atts;
}
+ if (is_string($attributes))
+ {
+ return ($attributes === '' ? '' : ' '.$attributes);
+ }
+
return FALSE;
}
}