mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 01:39:22 +02:00
Fix #158 Thanks @Misztrz
This commit is contained in:
parent
9d7854dda6
commit
2400f7c20a
@ -77,8 +77,12 @@ if(empty($guild_errors)) {
|
||||
$new_rank->setName('New Rank level '.$rank->getLevel());
|
||||
$new_rank->save();
|
||||
}
|
||||
|
||||
foreach($players_with_rank as $player_in_guild) {
|
||||
$player_in_guild->setRank($new_rank);
|
||||
$player = new OTS_Player();
|
||||
$player->load($player_in_guild['id']);
|
||||
if ($player->isLoaded())
|
||||
$player->setRank($new_rank);
|
||||
}
|
||||
}
|
||||
$rank->delete();
|
||||
|
Loading…
x
Reference in New Issue
Block a user