added params for more info about issue
This commit is contained in:
parent
ac55d0f511
commit
4a11043dcd
@ -412,4 +412,4 @@ class ErrorHandler {
|
|||||||
$setting = $this->maniaControl->settingManager->getSettingValue($this, self::SETTING_RESTART_ON_EXCEPTION, true);
|
$setting = $this->maniaControl->settingManager->getSettingValue($this, self::SETTING_RESTART_ON_EXCEPTION, true);
|
||||||
return $setting;
|
return $setting;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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 whole MapList
|
// Fetch Information for a single map
|
||||||
$maps = $this->maniaControl->mapManager->getMaps();
|
$maps = array($maps);
|
||||||
} else {
|
} else {
|
||||||
//Fetch Information for a single map
|
// Fetch Information for whole MapList
|
||||||
$maps = (array)$maps;
|
$maps = $this->maniaControl->mapManager->getMaps();
|
||||||
}
|
}
|
||||||
|
|
||||||
$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