diff options
author | msquare <msquare@notrademark.de> | 2016-11-11 14:59:25 +0100 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2016-11-11 14:59:25 +0100 |
commit | 82b9436c508fd9739555240991abda1b2fd63bd4 (patch) | |
tree | c8d5e5aeba23b93b5392bd39dbe8cefd6f324d14 /includes/controller/user_driver_licenses_controller.php | |
parent | 468a10774cee39d4f649e4e85906f228c8ed79a1 (diff) |
rename coordinator to supporter
Diffstat (limited to 'includes/controller/user_driver_licenses_controller.php')
-rw-r--r-- | includes/controller/user_driver_licenses_controller.php | 13 |
1 files changed, 6 insertions, 7 deletions
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."), '<a href="' . user_driver_license_edit_link() . '">' . _("driving license information") . '</a>'), 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."), '<a href="' . user_driver_license_edit_link() . '">' . _("driving license information") . '</a>'), true); - } - return ''; } |