mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
Fix #178
This commit is contained in:
parent
573fc819d3
commit
52ca8a844a
@ -279,7 +279,13 @@ else if ($id > 0 && isset($account) && $account->isLoaded()) {
|
||||
<?php
|
||||
$acc_group = $account->getAccGroupId();
|
||||
if ($hasTypeColumn) {
|
||||
$acc_type = array("Normal", "Tutor", "Senior Tutor", "Gamemaster", "God"); ?>
|
||||
$groups = new OTS_Groups_List();
|
||||
|
||||
$acc_type = array("Normal", "Tutor", "Senior Tutor", "Gamemaster", "God");
|
||||
if ($groups->getHighestId() == 6) {
|
||||
$acc_type = array("Normal", "Tutor", "Senior Tutor", "Gamemaster", "Community Manager", "God");
|
||||
}
|
||||
?>
|
||||
<div class="col-xs-6">
|
||||
<label for="group" class="control-label">Account Type:</label>
|
||||
<select name="group" id="group" class="form-control">
|
||||
|
@ -83,7 +83,7 @@ else {
|
||||
if($db->hasColumn('accounts', 'group_id'))
|
||||
$account_used->setCustomField('group_id', $groups->getHighestId());
|
||||
if($db->hasColumn('accounts', 'type'))
|
||||
$account_used->setCustomField('type', 5);
|
||||
$account_used->setCustomField('type', 6);
|
||||
|
||||
if(!$player_db->isLoaded())
|
||||
$player->setAccountId($account_used->getId());
|
||||
|
Loading…
x
Reference in New Issue
Block a user