Skip to content

Commit

Permalink
added the implode because it follows the convention earlier, as well …
Browse files Browse the repository at this point in the history
…as is a little, teeny, tiny bit cleaner. ;-)
  • Loading branch information
seangates committed Apr 2, 2011
1 parent 6ca0b1d commit d2f3153
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions application/helpers/MY_Form_helper.php
Expand Up @@ -427,14 +427,7 @@ function _parse_extras( $extras )
if( ! is_array($extras) )
return $extras;

$extra_string = null;

foreach( $extras as $extra )
{
$extra_string .= $extra . ' ';
}

return $extra;
return ' '.implode(' ', $extras);
}
}

Expand Down

0 comments on commit d2f3153

Please sign in to comment.