-
Notifications
You must be signed in to change notification settings - Fork 32
Fix Registration Form Submission #237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: development
Are you sure you want to change the base?
Conversation
$nick = ""; | ||
$lastname = ""; | ||
$prename = ""; | ||
$age = ""; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the 'Alter' field in the User table is an integer, it cannot be set equal to an empty value
$hometown = ""; | ||
$comment = ""; | ||
$native_lang = ""; | ||
$other_langs = ""; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These two variables are not initialized while showing the form, hence errors were displayed similar to 'Undefined variable $native_lang'
$welcome_message = WelcomeMessage(); | ||
$display_message = $welcome_message[0]['display_msg']; | ||
$angel_types_source = select_angeltype(); | ||
$angel_types_source = select_angeltypes(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A typo, as the function that exist in the system has the name 'select_angeltypes()'
$msg .= error(_("Please select a timezone"), true); | ||
} | ||
if (isset($_REQUEST['age']) && preg_match("/^[0-9]{0,4}$/", $_REQUEST['age'])) | ||
if (isset($_REQUEST['age']) && $_REQUEST['age'] != '' && preg_match("/^[0-9]{0,4}$/", $_REQUEST['age'])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'Alter' field in the user table cannot have an empty value
if (isset($_REQUEST['native_lang'])) | ||
$native_lang = strip_request_item('native_lang'); | ||
if (isset($_REQUEST['other_lang'])) { | ||
if (isset($_REQUEST['other_langs'])) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A typo as the name of the multiselect field is other_langs
please assign to me |
No description provided.