From 82b9436c508fd9739555240991abda1b2fd63bd4 Mon Sep 17 00:00:00 2001 From: msquare Date: Fri, 11 Nov 2016 14:59:25 +0100 Subject: rename coordinator to supporter --- includes/controller/user_driver_licenses_controller.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'includes/controller/user_driver_licenses_controller.php') diff --git a/includes/controller/user_driver_licenses_controller.php b/includes/controller/user_driver_licenses_controller.php index 49f21d14..a76d5507 100644 --- a/includes/controller/user_driver_licenses_controller.php +++ b/includes/controller/user_driver_licenses_controller.php @@ -9,18 +9,17 @@ function user_driver_license_required_hint() { $angeltypes = User_angeltypes($user); $user_driver_license = UserDriverLicense($user['UID']); - $driving_license_information_required = false; + // User has already entered data, no hint needed. + if ($user_driver_license != null) { + return ''; + } + foreach ($angeltypes as $angeltype) { if ($angeltype['requires_driver_license']) { - $driving_license_information_required = true; - break; + return info(sprintf(_("You joined an angeltype which requires a driving license. Please edit your driving license information here: %s."), '' . _("driving license information") . ''), true); } } - if ($driving_license_information_required && $user_driver_license == null) { - return info(sprintf(_("You joined an angeltype which requires a driving license. Please edit your driving license information here: %s."), '' . _("driving license information") . ''), true); - } - return ''; } -- cgit v1.2.3-54-g00ecf