From 3450a61a96d9c5d7cc3951555320ce8f6f896834 Mon Sep 17 00:00:00 2001 From: KFCSpike Date: Mon, 2 Dec 2013 13:45:03 +0000 Subject: [PATCH 1/2] Fix the php illegal offset warning when viewing alliance overview --- GameEngine/Ranking.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { From d7c08a42bc067137704b61a90cfe8f694c73a1d1 Mon Sep 17 00:00:00 2001 From: KFCSpike Date: Mon, 2 Dec 2013 13:45:49 +0000 Subject: [PATCH 2/2] Remove the trailing full stop after the alliance rank in alliance overview screen --- Templates/Alliance/overview.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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