Polishing Form helper
diff --git a/system/helpers/form_helper.php b/system/helpers/form_helper.php
index 5ba5b55..146c0f5 100644
--- a/system/helpers/form_helper.php
+++ b/system/helpers/form_helper.php
@@ -931,6 +931,11 @@
*/
function _attributes_to_string($attributes)
{
+ if (empty($attributes))
+ {
+ return '';
+ }
+
if (is_object($attributes))
{
$attributes = (array) $attributes;
@@ -950,7 +955,7 @@
if (is_string($attributes))
{
- return ($attributes === '' ? '' : ' '.$attributes);
+ return ' '.$attributes;
}
return FALSE;