summaryrefslogtreecommitdiffstats
path: root/system/helpers/form_helper.php
diff options
context:
space:
mode:
authorvlakoff <vlakoff@gmail.com>2013-07-28 22:35:04 +0200
committervlakoff <vlakoff@gmail.com>2013-07-28 22:35:04 +0200
commitbb8b08982369dd6a2d321844dced488f92134f20 (patch)
tree303e406c0c1c06f2d9c62ecdfaef9d9c3e3b6ee6 /system/helpers/form_helper.php
parentf746475e80a2734277eb1e76bb916ae3b2863423 (diff)
Polishing Form helper
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;