From 5ed1a874dd64aadfe52a9c4312bb4b5c0b384383 Mon Sep 17 00:00:00 2001 From: kremsy Date: Thu, 13 Feb 2014 21:14:56 +0100 Subject: [PATCH] small fix --- application/core/ManiaExchange/ManiaExchangeManager.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); + } } }