maplist optimations

This commit is contained in:
kremsy authored and Steffen Schröder committed 2014-05-01 17:34:59 +02:00
1 parent ae80995be6
commit 7fa6a0beda
2 files changed
+83 -6

No files matched your search

@@ -89,11 +89,20 @@ class ManiaExchangeManager {
$saveMapStatement->close();
}
/**
* Fetch Map Information from Mania Exchange
* @param null $map
*/
public function fetchManiaExchangeMapInformations() {
$maps = $this->maniaControl->mapManager->getMaps();
public function fetchManiaExchangeMapInformations($map = null) {
if(!$map){
//Fetch Informations for whole Maplist
$maps = $this->maniaControl->mapManager->getMaps();
}else{
//Fetch Information for a single map
$maps[] = $map;
}
$mysqli = $this->maniaControl->database->mysqli;
$mapIdString = '';