fix another undef/"" confusion

master
Joey Hess 2012-03-28 16:47:37 -04:00
parent 723c5b97d3
commit c0e5a0f1aa
1 changed files with 1 additions and 1 deletions

View File

@ -329,7 +329,7 @@ sub formbuilder (@) {
elsif ($form->title eq "preferences") {
if ($form->submitted eq "Save Preferences" && $form->validate) {
my $user_name=$form->field('name');
if ($form->field("password") && length $form->field("password")) {
if (defined $form->field("password") && length $form->field("password")) {
setpassword($user_name, $form->field('password'));
}
}