diff --git a/GameEngine/Ranking.php b/GameEngine/Ranking.php index f4ea3e88..d2a98c47 100644 --- a/GameEngine/Ranking.php +++ b/GameEngine/Ranking.php @@ -179,7 +179,7 @@ while(1) { if(count($this->rankarray) > 1) { $key = key($this->rankarray); - if($this->rankarray[$key]["id"] == $id) { + if(isset ($this->rankarray[$key]["id"]) && $this->rankarray[$key]["id"] === $id) { return $key; break; } else { diff --git a/Templates/Alliance/overview.tpl b/Templates/Alliance/overview.tpl index 7a9ca223..a7a1021c 100644 --- a/Templates/Alliance/overview.tpl +++ b/Templates/Alliance/overview.tpl @@ -54,7 +54,7 @@ include("alli_menu.tpl"); Rank - getAllianceRank($aid); ?>. + getAllianceRank($aid); ?> Points