From 54fcd7a34f096d2c2b878bd3a90e973b119caef1 Mon Sep 17 00:00:00 2001 From: lucaxvi Date: Fri, 17 Jan 2020 21:02:35 +0100 Subject: [PATCH] getSeason always returns NULL The leaguedetails.xml file doesn't contain any 'Season' element. --- PHT/Xml/World/League/Senior.php | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/PHT/Xml/World/League/Senior.php b/PHT/Xml/World/League/Senior.php index 80b9e07..beac9c7 100644 --- a/PHT/Xml/World/League/Senior.php +++ b/PHT/Xml/World/League/Senior.php @@ -144,16 +144,6 @@ public function getCurrentMatchRound() return $this->getXml()->getElementsByTagName('CurrentMatchRound')->item(0)->nodeValue; } - /** - * Return season number - * - * @return integer - */ - public function getSeason() - { - return $this->getXml()->getElementsByTagName('Season')->item(0)->nodeValue; - } - /** * Get current season details * @@ -161,6 +151,6 @@ public function getSeason() */ public function getCurrentSeason() { - return Wrapper\World\Season::senior($this->getId(), $this->getSeason()); + return Wrapper\World\Season::senior($this->getId(), null); } }