diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2018-12-22 00:12:46 +0100 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2018-12-22 12:03:24 +0100 |
commit | b1d8fede465950e5d1a0d6521a6d862a02e9ce36 (patch) | |
tree | 8233350acc1b4327516729b37e39baa414653810 /includes/pages/user_settings.php | |
parent | 330356043df8e9c08fb3a408c74fe54bc2b9813d (diff) |
user: allow up to 40 characters for dect numbers
closes #309 (EPVPN number in DECT field is shortened)
closes #529 (For dect numbers are only 5 digits allowed)
Diffstat (limited to 'includes/pages/user_settings.php')
-rw-r--r-- | includes/pages/user_settings.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/pages/user_settings.php b/includes/pages/user_settings.php index c39c0ef7..9099f658 100644 --- a/includes/pages/user_settings.php +++ b/includes/pages/user_settings.php @@ -72,11 +72,11 @@ 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']); - if (strlen(strip_request_item('dect')) <= 5) { + if (strlen(strip_request_item('dect')) <= 40) { $user_source->contact->dect = strip_request_item('dect', $user_source['DECT']); } else { $valid = false; - error(__('For dect numbers are only 5 digits allowed.')); + error(__('For dect numbers are only 40 digits allowed.')); } $user_source->contact->mobile = strip_request_item('mobile', $user_source['Handy']); |