Merge branch 'pandora_5.1' of https://github.com/pandorafms/pandorafms into pandora_5.1

This commit is contained in:
m-lopez-f 2015-12-22 12:51:59 +01:00
commit 5a1447ef2e
1 changed files with 7 additions and 4 deletions

View File

@ -915,10 +915,13 @@ function html_print_input_password ($name, $value, $alt = '', $size = 50, $maxle
if ($size == 0)
$size = 10;
if ($required)
$attr = array('required' => 'required');
$attr = array();
if ($required) {
$attr['required'] = 'required';
}
return html_print_input_text_extended ($name, $value, 'password-'.$name, $alt, $size, $maxlength, $disabled, '', $attr, $return, true);
}