summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorArnout Engelen <arnouten@bzzt.net>2017-04-30 13:01:33 +0200
committerArnout Engelen <arnouten@bzzt.net>2017-04-30 13:01:33 +0200
commit3d8dea37331eb4031958fadf0cc8cd623402fdce (patch)
tree50cf6cc6b333abbabaf232b98ddc8d7b592274f1 /includes
parentcf20b65902c3f503b1f568c94df130ec0c4c9494 (diff)
Form validation: should tick at least on license
Owning a car is not sufficient, select at least one kind of drivers' license
Diffstat (limited to 'includes')
-rw-r--r--includes/model/UserDriverLicenses_model.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/model/UserDriverLicenses_model.php b/includes/model/UserDriverLicenses_model.php
index 6caa3589..afc44575 100644
--- a/includes/model/UserDriverLicenses_model.php
+++ b/includes/model/UserDriverLicenses_model.php
@@ -24,7 +24,7 @@ function UserDriverLicense_new() {
* @return boolean
*/
function UserDriverLicense_valid($user_driver_license) {
- return $user_driver_license['has_car'] || $user_driver_license['has_license_car'] || $user_driver_license['has_license_3_5t_transporter'] || $user_driver_license['has_license_7_5t_truck'] || $user_driver_license['has_license_12_5t_truck'] || $user_driver_license['has_license_forklift'];
+ return $user_driver_license['has_license_car'] || $user_driver_license['has_license_3_5t_transporter'] || $user_driver_license['has_license_7_5t_truck'] || $user_driver_license['has_license_12_5t_truck'] || $user_driver_license['has_license_forklift'];
}
/**