small fix

This commit is contained in:
kremsy authored and Steffen Schröder committed 2014-05-01 17:35:18 +02:00
1 parent b6f5fc5686
commit 5ed1a874dd
1 file changed
+4 -1
@@ -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);
}
}
}