diff options
author | msquare <msquare@notrademark.de> | 2016-09-29 12:08:12 +0200 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2016-09-29 12:08:12 +0200 |
commit | f05f1a3cd4cc3a9fa6021d2c5feedd7e734973ba (patch) | |
tree | d1c2404dc56f6d1d0a3ed402d0a3880e77b70a17 /includes/controller/user_driver_licenses_controller.php | |
parent | 81e5a6482c340d3013c9fce54c10ef1a72a5a930 (diff) |
rename to
Diffstat (limited to 'includes/controller/user_driver_licenses_controller.php')
-rw-r--r-- | includes/controller/user_driver_licenses_controller.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/controller/user_driver_licenses_controller.php b/includes/controller/user_driver_licenses_controller.php index 62e491f1..d1c770ba 100644 --- a/includes/controller/user_driver_licenses_controller.php +++ b/includes/controller/user_driver_licenses_controller.php @@ -109,7 +109,7 @@ function user_driver_license_edit_controller() { } if (isset($_REQUEST['submit'])) { - $ok = true; + $valid = true; $wants_to_drive = isset($_REQUEST['wants_to_drive']); $has_car = isset($_REQUEST['has_car']); $has_license_car = isset($_REQUEST['has_license_car']); @@ -119,11 +119,11 @@ function user_driver_license_edit_controller() { $has_license_forklift = isset($_REQUEST['has_license_forklift']); if ($wants_to_drive && ! $has_license_car && ! $has_license_3_5t_transporter && ! $has_license_7_5t_truck && ! $has_license_12_5t_truck && ! $has_license_forklift) { - $ok = false; + $valid = false; error(_("Please select at least one driving license.")); } - if ($ok) { + if ($valid) { if (! $wants_to_drive && $user_driver_license != null) { $result = UserDriverLicenses_delete($user_source['UID']); if ($result === false) { |