This patch fixes a bug that allows players to delete all
the alliances in a game.
To install the patch, backup your existing teams.php
and then replace it with the one provided below.
Or to install manually:
Backup teams.php
In teams.php find:
} elseif ($confirmleave == 1) {
Insert after:
if ($playerinfo[team] !== $whichteam)
{
echo "
You are not in this alliance!
";
LINK_BACK();
break;
}
In teams.php find:
} elseif ($confirmleave == 2) { // owner of a team is
leaving and set a new owner
Insert after:
if ($playerinfo[team] !== $whichteam)
{
echo "
You are not in this alliance!
";
LINK_BACK();
break;
}
Patched teams.php