added params for more info about issue

This commit is contained in:
Steffen Schröder 2014-06-14 19:45:32 +02:00
parent ac55d0f511
commit 4a11043dcd
2 changed files with 7 additions and 7 deletions

View File

@ -412,4 +412,4 @@ class ErrorHandler {
$setting = $this->maniaControl->settingManager->getSettingValue($this, self::SETTING_RESTART_ON_EXCEPTION, true);
return $setting;
}
}
}

View File

@ -75,12 +75,12 @@ class ManiaExchangeManager {
* @param mixed $maps
*/
public function fetchManiaExchangeMapInformation($maps = null) {
if (!$maps) {
//Fetch Information for whole MapList
$maps = $this->maniaControl->mapManager->getMaps();
if ($maps) {
// Fetch Information for a single map
$maps = array($maps);
} else {
//Fetch Information for a single map
$maps = (array)$maps;
// Fetch Information for whole MapList
$maps = $this->maniaControl->mapManager->getMaps();
}
$mysqli = $this->maniaControl->database->mysqli;
@ -99,7 +99,7 @@ class ManiaExchangeManager {
foreach ($maps as $map) {
if (!$map) {
// 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;
}
/** @var Map $map */