fixed typo + better language checking

This commit is contained in:
Lucas Bartholemy 2006-06-28 13:50:37 +00:00
parent fbcd4fb252
commit bfd2f7ed59
2 changed files with 6 additions and 1 deletions

View file

@ -150,6 +150,11 @@ sub validateProfileData {
} elsif ($field->getId eq "email" && isDuplicateEmail($session,$data{$field->getId})) {
$warning .= '<li>'.$i18n->get(1072).'</li>';
}
if ($field->getId eq "language") {
unless (exists WebGUI::International->new($session)->getLanguages($session)->{$fieldValue}) {
$error .= '<li>'.$field->getLabel.' '.$i18n->get(451).'</li>';
}
}
}
return (\%data, $error, $warning);
}