Registration form fixes
This commit is contained in:
1 parent
b22be5427f
commit
12a9f20acf
2 files changed
+4
-3
No files matched your search
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user