Registration form fixes

This commit is contained in:
nikolark committed 2015-08-05 19:07:24 +02:00
1 parent b22be5427f
commit 12a9f20acf
2 files changed
+4 -3

No files matched your search

+2 -1
View File
@@ -546,7 +546,8 @@ function validate_activation_form($data) {
if( strlen($data['street']) == 0) {
$data['street'] = '-';
}
if( !is_numeric($data['zipcode']) ) {
// zip code (optional)
if( strlen($data['zipcode']) > 0 && !is_numeric($data['zipcode']) ) {
throw new ValidationException("Ugyldig postnummer, må være et tall");
}