mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 09:19:22 +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'];
|
$rl_loca = $_POST['rl_loca'];
|
||||||
|
|
||||||
//country
|
//country
|
||||||
$rl_country = $_POST['rl_country'];
|
if(setting('core.account_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);
|
||||||
$account->setCountry($rl_country);
|
|
||||||
|
if(setting('core.account_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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user