summaryrefslogtreecommitdiff
path: root/includes/pages/user_settings.php
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2019-04-25 17:30:51 +0200
committermsquare <msquare@notrademark.de>2019-04-25 17:56:23 +0200
commit7c3a0c70e8d23f47287ead148c6b8682216352c6 (patch)
tree40d7a7fab99134223774f61ba291a92ad7b0bf35 /includes/pages/user_settings.php
parent99306688370874b3153ec6ab185a58044881cb1a (diff)
Bugfix: default value for planned_arrival_date and don't overwrite dect
Fixed registration form formatting Fixed profile request attributes fallback values
Diffstat (limited to 'includes/pages/user_settings.php')
-rw-r--r--includes/pages/user_settings.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/includes/pages/user_settings.php b/includes/pages/user_settings.php
index 9099f658..ae29e4d8 100644
--- a/includes/pages/user_settings.php
+++ b/includes/pages/user_settings.php
@@ -70,15 +70,15 @@ function user_settings_main($user_source, $enable_tshirt_size, $tshirt_sizes)
}
// Trivia
- $user_source->personalData->last_name = strip_request_item('lastname', $user_source['Name']);
- $user_source->personalData->first_name = strip_request_item('prename', $user_source['Vorname']);
+ $user_source->personalData->last_name = strip_request_item('lastname', $user_source->personalData->last_name);
+ $user_source->personalData->first_name = strip_request_item('prename', $user_source->personalData->first_name);
if (strlen(strip_request_item('dect')) <= 40) {
- $user_source->contact->dect = strip_request_item('dect', $user_source['DECT']);
+ $user_source->contact->dect = strip_request_item('dect', $user_source->contact->dect);
} else {
$valid = false;
error(__('For dect numbers are only 40 digits allowed.'));
}
- $user_source->contact->mobile = strip_request_item('mobile', $user_source['Handy']);
+ $user_source->contact->mobile = strip_request_item('mobile', $user_source->contact->mobile);
if ($valid) {
$user_source->save();