1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01:00

Fixes $frm->password() styling when used with bootstrap on the frontend.

This commit is contained in:
Cameron 2014-08-20 02:00:32 -07:00
parent bf2fa42da7
commit 8aa40f3ce1

View File

@ -1037,7 +1037,14 @@ class e_form
//never allow id in format name-value for text fields
$text = "<input type='password' name='{$name}' value='{$value}' maxlength='{$maxlength}'".$this->get_attributes($options, $name)." />";
return "<span class='form-inline'>".$text.$gen."</span>".vartrue($addon);
if(empty($gen) && empty($addon))
{
return $text;
}
else
{
return "<span class='form-inline'>".$text.$gen."</span>".vartrue($addon);
}
}