Fix warning if core.account_country is disabled

This commit is contained in:
slawkens 2024-08-12 23:01:45 +02:00
parent 8d8bdb6dac
commit ab73d60c61

View File

@ -157,7 +157,9 @@ else if (isset($_REQUEST['search'])) {
$rl_loca = $_POST['rl_loca']; $rl_loca = $_POST['rl_loca'];
//country //country
if(setting('core.account_country')) {
$rl_country = $_POST['rl_country']; $rl_country = $_POST['rl_country'];
}
$web_flags = $_POST['web_flags']; $web_flags = $_POST['web_flags'];
verify_number($web_flags, 'Web Flags', 1); verify_number($web_flags, 'Web Flags', 1);
@ -204,7 +206,11 @@ else if (isset($_REQUEST['search'])) {
} }
$account->setRLName($rl_name); $account->setRLName($rl_name);
$account->setLocation($rl_loca); $account->setLocation($rl_loca);
if(setting('core.account_country')) {
$account->setCountry($rl_country); $account->setCountry($rl_country);
}
$account->setCustomField('created', $created); $account->setCustomField('created', $created);
$account->setWebFlags($web_flags); $account->setWebFlags($web_flags);
$account->setCustomField('web_lastlogin', $web_lastlogin); $account->setCustomField('web_lastlogin', $web_lastlogin);