small fix

This commit is contained in:
kremsy 2014-02-13 21:14:56 +01:00 committed by Steffen Schröder
parent b6f5fc5686
commit 5ed1a874dd

View File

@ -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);
}
}
}