mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Some enhancements (#1445)
* Minor improvements * Update CHANGELOG.md * Updated * Update functions.php * Updated * Update functions.php * Updated * Update Select.php * Updated * Update functions.php * Updated * Update register.php * Update main.php * Updated * Update functions.php * Updated * Update usercp_viewprofile.tpl * Update main.php * Updated * Update CHANGELOG.md
This commit is contained in:
parent
b9f197ce22
commit
380fb8b557
10 changed files with 328 additions and 323 deletions
|
@ -433,12 +433,11 @@ foreach ($profile_fields as $field => $can_edit) {
|
|||
*/
|
||||
case 'user_from':
|
||||
$from = isset($_POST['user_from']) ? (string)$_POST['user_from'] : $pr_data['user_from'];
|
||||
$from = htmlCHR($from);
|
||||
if ($submit && $from != $pr_data['user_from']) {
|
||||
$pr_data['user_from'] = $from;
|
||||
$db_data['user_from'] = (string)$from;
|
||||
}
|
||||
$tp_data['USER_FROM'] = $pr_data['user_from'];
|
||||
$tp_data['COUNTRY_SELECT'] = build_select('user_from', array_flip($lang['COUNTRIES']), $pr_data['user_from']);
|
||||
break;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue