diff --git a/application/core/ManiaExchange/ManiaExchangeManager.php b/application/core/ManiaExchange/ManiaExchangeManager.php index 466a1d05..7d2ea260 100644 --- a/application/core/ManiaExchange/ManiaExchangeManager.php +++ b/application/core/ManiaExchange/ManiaExchangeManager.php @@ -233,7 +233,10 @@ class ManiaExchangeManager { $maps = array(); foreach($mxMapList as $map) { if ($map != null) { - array_push($maps, new MXMapInfo($titlePrefix, $map)); + $mxMapObject = new MXMapInfo($titlePrefix, $map); + if ($mxMapObject != null) { + array_push($maps, $mxMapObject); + } } }