From b462fe4817f7ba23797f3b28958e81c0cc2f22e3 Mon Sep 17 00:00:00 2001 From: kremsy Date: Thu, 13 Feb 2014 20:51:16 +0100 Subject: [PATCH] mx fix --- application/core/ManiaExchange/ManiaExchangeManager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/core/ManiaExchange/ManiaExchangeManager.php b/application/core/ManiaExchange/ManiaExchangeManager.php index 3b9fb3d9..466a1d05 100644 --- a/application/core/ManiaExchange/ManiaExchangeManager.php +++ b/application/core/ManiaExchange/ManiaExchangeManager.php @@ -232,7 +232,7 @@ class ManiaExchangeManager { $maps = array(); foreach($mxMapList as $map) { - if (!empty($map)) { + if ($map != null) { array_push($maps, new MXMapInfo($titlePrefix, $map)); } } @@ -290,7 +290,7 @@ class ManiaExchangeManager { if ($e->getMessage() != 'Not in script mode.') { throw $e; } - //dont append map tpye + //dont append map type } $fileFunc = function ($mapInfo, $error) use (&$function, $titlePrefix) {