From 6195757f68e7a6616d06577186a8660a702c3e69 Mon Sep 17 00:00:00 2001 From: kremsy Date: Sat, 20 May 2017 10:43:14 +0200 Subject: [PATCH] dedimania fix --- plugins/MCTeam/Dedimania/DedimaniaWebHandler.php | 2 +- plugins/MCTeam/LocalRecordsPlugin.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/MCTeam/Dedimania/DedimaniaWebHandler.php b/plugins/MCTeam/Dedimania/DedimaniaWebHandler.php index bf84e3dd..4af6a8ef 100644 --- a/plugins/MCTeam/Dedimania/DedimaniaWebHandler.php +++ b/plugins/MCTeam/Dedimania/DedimaniaWebHandler.php @@ -53,7 +53,6 @@ class DedimaniaWebHandler { if (!$data || $error) { Logger::logError("Dedimania Error while opening session: '{$error}' Line 42"); - var_dump($data); } $data = $this->decode($data); @@ -188,6 +187,7 @@ class DedimaniaWebHandler { $methodResponse = $data[0]; if (xmlrpc_is_fault($methodResponse)) { $this->handleXmlRpcFault($methodResponse, self::DEDIMANIA_CHECK_SESSION); + $this->openDedimaniaSession(); return; } diff --git a/plugins/MCTeam/LocalRecordsPlugin.php b/plugins/MCTeam/LocalRecordsPlugin.php index e6d6f31a..6217c11a 100644 --- a/plugins/MCTeam/LocalRecordsPlugin.php +++ b/plugins/MCTeam/LocalRecordsPlugin.php @@ -233,12 +233,13 @@ class LocalRecordsPlugin implements ManialinkPageAnswerListener, CallbackListene $quadStyle = $this->maniaControl->getManialinkManager()->getStyleManager()->getDefaultQuadStyle(); $quadSubstyle = $this->maniaControl->getManialinkManager()->getStyleManager()->getDefaultQuadSubstyle(); - $records = $this->getLocalRecords($map, 1000); + $records = $this->getLocalRecords($map, 1000); //TODO limit setting if (!is_array($records)) { Logger::logError("Couldn't fetch player records."); return null; } + //TODO maybe only store if player is connected $playerRecords = array(); foreach ($records as $index => $record) { $playerRecords[$record->playerIndex] = $index;