From f7cf9b327e9fe5a5957b885b25911497d43ef2f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20H=C3=A4usler?= Date: Sun, 20 Dec 2015 21:07:08 +0100 Subject: [PATCH] #198 log updates on driving license information --- includes/controller/user_driver_licenses_controller.php | 6 ++++-- 1 file 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.")); }