mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
Fix warning if core.account_country is disabled
This commit is contained in:
parent
8d8bdb6dac
commit
ab73d60c61
@ -157,7 +157,9 @@ else if (isset($_REQUEST['search'])) {
|
||||
$rl_loca = $_POST['rl_loca'];
|
||||
|
||||
//country
|
||||
if(setting('core.account_country')) {
|
||||
$rl_country = $_POST['rl_country'];
|
||||
}
|
||||
|
||||
$web_flags = $_POST['web_flags'];
|
||||
verify_number($web_flags, 'Web Flags', 1);
|
||||
@ -204,7 +206,11 @@ else if (isset($_REQUEST['search'])) {
|
||||
}
|
||||
$account->setRLName($rl_name);
|
||||
$account->setLocation($rl_loca);
|
||||
|
||||
if(setting('core.account_country')) {
|
||||
$account->setCountry($rl_country);
|
||||
}
|
||||
|
||||
$account->setCustomField('created', $created);
|
||||
$account->setWebFlags($web_flags);
|
||||
$account->setCustomField('web_lastlogin', $web_lastlogin);
|
||||
|
Loading…
x
Reference in New Issue
Block a user