added params for more info about issue
This commit is contained in:
parent
ac55d0f511
commit
4a11043dcd
@ -75,12 +75,12 @@ class ManiaExchangeManager {
|
|||||||
* @param mixed $maps
|
* @param mixed $maps
|
||||||
*/
|
*/
|
||||||
public function fetchManiaExchangeMapInformation($maps = null) {
|
public function fetchManiaExchangeMapInformation($maps = null) {
|
||||||
if (!$maps) {
|
if ($maps) {
|
||||||
|
// Fetch Information for a single map
|
||||||
|
$maps = array($maps);
|
||||||
|
} else {
|
||||||
// Fetch Information for whole MapList
|
// Fetch Information for whole MapList
|
||||||
$maps = $this->maniaControl->mapManager->getMaps();
|
$maps = $this->maniaControl->mapManager->getMaps();
|
||||||
} else {
|
|
||||||
//Fetch Information for a single map
|
|
||||||
$maps = (array)$maps;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$mysqli = $this->maniaControl->database->mysqli;
|
$mysqli = $this->maniaControl->database->mysqli;
|
||||||
@ -99,7 +99,7 @@ class ManiaExchangeManager {
|
|||||||
foreach ($maps as $map) {
|
foreach ($maps as $map) {
|
||||||
if (!$map) {
|
if (!$map) {
|
||||||
// TODO: remove after resolving of error report about "non-object"
|
// TODO: remove after resolving of error report about "non-object"
|
||||||
$this->maniaControl->errorHandler->triggerDebugNotice('Non-Object-Map: ' . print_r($map, true));
|
$this->maniaControl->errorHandler->triggerDebugNotice('Non-Object-Map', $map, $maps);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
/** @var Map $map */
|
/** @var Map $map */
|
||||||
|
Loading…
Reference in New Issue
Block a user