diff --git a/plugins/MCTeam/Dedimania/DedimaniaData.php b/plugins/MCTeam/Dedimania/DedimaniaData.php index 6d3ec688..5b7fc468 100644 --- a/plugins/MCTeam/Dedimania/DedimaniaData.php +++ b/plugins/MCTeam/Dedimania/DedimaniaData.php @@ -116,7 +116,7 @@ class DedimaniaData { * Unsets all existing Records */ public function unsetRecords() { - unset($this->records); + $this->records = array(); } /** diff --git a/plugins/MCTeam/Dedimania/DedimaniaPlugin.php b/plugins/MCTeam/Dedimania/DedimaniaPlugin.php index 008387f9..d329cd7f 100644 --- a/plugins/MCTeam/Dedimania/DedimaniaPlugin.php +++ b/plugins/MCTeam/Dedimania/DedimaniaPlugin.php @@ -238,8 +238,6 @@ class DedimaniaPlugin implements CallbackListener, CommandListener, TimerListene */ public function handleEveryHalfMinute() { if ($this->webHandler->getDedimaniaData()->sessionId == "") { - var_dump("Debug test Dedimania 2, will be removed soon!"); //TODO - var_dump($this->webHandler->getDedimaniaData()->sessionId); return; } $this->webHandler->checkDedimaniaSession(); @@ -307,7 +305,7 @@ class DedimaniaPlugin implements CallbackListener, CommandListener, TimerListene /** * Handle Finish Callback * - * @param OnWayPointEventStructure $callback + * @param \ManiaControl\Callbacks\Structures\TrackMania\OnWayPointEventStructure $structure */ public function handleFinishCallback(OnWayPointEventStructure $structure) { if ($structure->getRaceTime() <= 0) {