small fix

This commit is contained in:
kremsy 2014-02-15 16:33:48 +01:00 committed by Steffen Schröder
parent 9915f66b0b
commit 3773882cee

View File

@ -224,6 +224,9 @@ class ManiaExchangeManager {
return null; return null;
} }
if ($mapInfo == '') {
return null;
}
$mxMapList = json_decode($mapInfo); $mxMapList = json_decode($mapInfo);
if ($mxMapList === null) { if ($mxMapList === null) {
trigger_error('Cannot decode searched JSON data from ' . $url); trigger_error('Cannot decode searched JSON data from ' . $url);