summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2015-12-20 21:07:08 +0100
committerPhilip Häusler <msquare@notrademark.de>2015-12-20 21:07:08 +0100
commitf7cf9b327e9fe5a5957b885b25911497d43ef2f9 (patch)
treeb17c359c1805b9c0212f83f5141f43a4ec29d54e /includes
parent6cf8d9802b56392a5d6f3e635791b1e6ef0a0f69 (diff)
#198 log updates on driving license information
Diffstat (limited to 'includes')
-rw-r--r--includes/controller/user_driver_licenses_controller.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/includes/controller/user_driver_licenses_controller.php b/includes/controller/user_driver_licenses_controller.php
index ec094220..d13d84d9 100644
--- a/includes/controller/user_driver_licenses_controller.php
+++ b/includes/controller/user_driver_licenses_controller.php
@@ -116,7 +116,8 @@ function user_driver_license_edit_controller() {
if (! $wants_to_drive && $user_driver_license != null) {
$result = UserDriverLicenses_delete($user_source['UID']);
if ($result === false)
- engelsystem_error('Unable to remove user driver license information');
+ engelsystem_error("Unable to remove user driver license information");
+ engelsystem_log("Driver license information removed.");
success(_("Your driver license information has been removed."));
} else {
if ($wants_to_drive) {
@@ -126,7 +127,8 @@ function user_driver_license_edit_controller() {
$result = UserDriverLicenses_update($user_source['UID'], $has_car, $has_license_car, $has_license_3_5t_transporter, $has_license_7_5t_truck, $has_license_12_5t_truck, $has_license_forklift);
if ($result === false)
- engelsystem_error('Unable to save user driver license information.');
+ engelsystem_error("Unable to save user driver license information.");
+ engelsystem_log("Driver license information updated.");
}
success(_("Your driver license information has been saved."));
}