summaryrefslogtreecommitdiff
path: root/includes/pages
diff options
context:
space:
mode:
Diffstat (limited to 'includes/pages')
-rw-r--r--includes/pages/admin_user.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/includes/pages/admin_user.php b/includes/pages/admin_user.php
index 0aa1f161..1c40586f 100644
--- a/includes/pages/admin_user.php
+++ b/includes/pages/admin_user.php
@@ -268,8 +268,10 @@ function admin_user()
$user_source->name = $nickValidation->getValue();
}
$user_source->save();
- $user_source->personalData->first_name = $request->postData('eVorname');
- $user_source->personalData->last_name = $request->postData('eName');
+ if (config('enable_user_name')) {
+ $user_source->personalData->first_name = $request->postData('eVorname');
+ $user_source->personalData->last_name = $request->postData('eName');
+ }
$user_source->personalData->shirt_size = $request->postData('eSize');
$user_source->personalData->save();
$user_source->contact->mobile = $request->postData('eHandy');