Good day,
Sorry (if I do understand sometyhng wrong or issue has been already described), but the following code in create_account.php module can cause "Undefined variable" warning:
Code:
/**
* Process form contents
*/
if (isset($_POST['action']) && ($_POST['action'] == 'process') && !isset($login_page)) {
...
$country = zen_db_prepare_input($_POST['zone_country_id']);
...
}
/*
* Set flags for template use:
*/
$selected_country = (isset($_POST['zone_country_id']) && $_POST['zone_country_id'] != '') ? $country : SHOW_CREATE_ACCOUNT_DEFAULT_COUNTRY;
...
My homble suggestion (line 401):
Code:
$selected_country = !empty($_POST['zone_country_id']) ? zen_db_prepare_input($_POST['zone_country_id']) : SHOW_CREATE_ACCOUNT_DEFAULT_COUNTRY;
Bookmarks