From 3d8dea37331eb4031958fadf0cc8cd623402fdce Mon Sep 17 00:00:00 2001 From: Arnout Engelen Date: Sun, 30 Apr 2017 13:01:33 +0200 Subject: [PATCH] Form validation: should tick at least on license Owning a car is not sufficient, select at least one kind of drivers' license --- includes/model/UserDriverLicenses_model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']; } /**