Skip to content

Commit

Permalink
Fix warning if core.account_country is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
slawkens committed Aug 12, 2024
1 parent 8d8bdb6 commit ab73d60
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions admin/pages/accounts.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@
$rl_loca = $_POST['rl_loca'];

//country
$rl_country = $_POST['rl_country'];
if(setting('core.account_country')) {
$rl_country = $_POST['rl_country'];
}

$web_flags = $_POST['web_flags'];
verify_number($web_flags, 'Web Flags', 1);
Expand Down Expand Up @@ -204,7 +206,11 @@
}
$account->setRLName($rl_name);
$account->setLocation($rl_loca);
$account->setCountry($rl_country);

if(setting('core.account_country')) {
$account->setCountry($rl_country);
}

$account->setCustomField('created', $created);
$account->setWebFlags($web_flags);
$account->setCustomField('web_lastlogin', $web_lastlogin);
Expand Down

0 comments on commit ab73d60

Please sign in to comment.