Skip to content

Conversation

imujjwal96
Copy link

No description provided.

$nick = "";
$lastname = "";
$prename = "";
$age = "";
Copy link
Author

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 = "";
Copy link
Author

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();
Copy link
Author

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']))
Copy link
Author

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'])) {
Copy link
Author

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

@Gokilp
Copy link

Gokilp commented Jan 31, 2024

please assign to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants