Sayonara, warning.
This commit is contained in:
parent
8c117338ca
commit
617be0038a
|
@ -916,8 +916,11 @@ function html_print_input_password ($name, $value, $alt = '', $size = 50, $maxle
|
||||||
if ($size == 0)
|
if ($size == 0)
|
||||||
$size = 10;
|
$size = 10;
|
||||||
|
|
||||||
if ($required)
|
$attr = array();
|
||||||
$attr = array('required' => 'required');
|
|
||||||
|
if ($required) {
|
||||||
|
$attr['required'] = 'required';
|
||||||
|
}
|
||||||
|
|
||||||
return html_print_input_text_extended ($name, $value, 'password-'.$name, $alt, $size, $maxlength, $disabled, '', $attr, $return, true);
|
return html_print_input_text_extended ($name, $value, 'password-'.$name, $alt, $size, $maxlength, $disabled, '', $attr, $return, true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue