Added setMatchPoints() to Trackmania OnScoresStructure, Fixed a Maplist search bug

This commit is contained in:
Jocy committed 2017-05-14 17:12:48 +02:00
1 parent 4cc523800a
commit a3d7bdbb8a
2 files changed
+6 -1

No files matched your search

+5 -1
View File
@@ -778,7 +778,11 @@ class MapList implements ManialinkPageAnswerListener, CallbackListener {
$player = $this->maniaControl->getPlayerManager()->getPlayer($login);
$searchString = $callback[1][3][0]['Value'];
$maps = $this->maniaControl->getMapManager()->searchMapsByAuthor($searchString);
if ($searchString) {
$maps = $this->maniaControl->getMapManager()->searchMapsByAuthor($searchString);
} else {
$maps = null;
}
$this->showMapList($player, $maps);
}