From 3773882cee1560faa763eb39b08a394b149b8c60 Mon Sep 17 00:00:00 2001 From: kremsy Date: Sat, 15 Feb 2014 16:33:48 +0100 Subject: [PATCH] small fix --- application/core/ManiaExchange/ManiaExchangeManager.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/application/core/ManiaExchange/ManiaExchangeManager.php b/application/core/ManiaExchange/ManiaExchangeManager.php index 7d2ea260..1e2362e3 100644 --- a/application/core/ManiaExchange/ManiaExchangeManager.php +++ b/application/core/ManiaExchange/ManiaExchangeManager.php @@ -224,6 +224,9 @@ class ManiaExchangeManager { return null; } + if ($mapInfo == '') { + return null; + } $mxMapList = json_decode($mapInfo); if ($mxMapList === null) { trigger_error('Cannot decode searched JSON data from ' . $url);