Merge pull request #7 from Fannybaws/AllianceRank

Alliance rank
This commit is contained in:
Shadow
2013-12-02 08:52:01 -08:00
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -179,7 +179,7 @@
while(1) { while(1) {
if(count($this->rankarray) > 1) { if(count($this->rankarray) > 1) {
$key = key($this->rankarray); $key = key($this->rankarray);
if($this->rankarray[$key]["id"] == $id) { if(isset ($this->rankarray[$key]["id"]) && $this->rankarray[$key]["id"] === $id) {
return $key; return $key;
break; break;
} else { } else {
+1 -1
View File
@@ -54,7 +54,7 @@ include("alli_menu.tpl");
</tr> </tr>
<tr> <tr>
<th>Rank</th> <th>Rank</th>
<td><?php echo $ranking->getAllianceRank($aid); ?>.</td> <td><?php echo $ranking->getAllianceRank($aid); ?></td>
</tr> </tr>
<tr> <tr>
<th>Points</th> <th>Points</th>