diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2017-01-22 01:16:00 +0100 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2017-01-22 01:16:00 +0100 |
commit | 781f830678dcc5601c47a01acab7763c9bb8363d (patch) | |
tree | 29d55a68fbc1e1a6703d92e59ddf580be73edeef /includes/controller/user_driver_licenses_controller.php | |
parent | 3de0cc840f45e53a9135f4faa44a375a7b0148ef (diff) |
Fixes and improvements
Diffstat (limited to 'includes/controller/user_driver_licenses_controller.php')
-rw-r--r-- | includes/controller/user_driver_licenses_controller.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/controller/user_driver_licenses_controller.php b/includes/controller/user_driver_licenses_controller.php index 491a70b2..3098c8ce 100644 --- a/includes/controller/user_driver_licenses_controller.php +++ b/includes/controller/user_driver_licenses_controller.php @@ -123,7 +123,7 @@ function user_driver_license_edit_controller() if (UserDriverLicense_valid($user_driver_license)) { if ($user_driver_license['user_id'] == null) { - $user_driver_license = UserDriverLicenses_create($user_driver_license, $user_source['UID']); + $user_driver_license = UserDriverLicenses_create($user_driver_license, $user_source); } else { UserDriverLicenses_update($user_driver_license); } @@ -133,7 +133,7 @@ function user_driver_license_edit_controller() } else { error(_('Please select at least one driving license.')); } - } elseif ($user_driver_license['id'] != null) { + } elseif ($user_driver_license['user_id'] != null) { UserDriverLicenses_delete($user_source['UID']); engelsystem_log('Driver license information removed.'); success(_('Your driver license information has been removed.')); |