From deeb05e68156cbee7e0758c1172fcb7d42004623 Mon Sep 17 00:00:00 2001 From: kremsy Date: Sun, 16 Feb 2014 13:24:31 +0100 Subject: [PATCH] workaround mx bug (tgyoshi, will fix it on mx the next 1-2 days) --- application/core/ManiaExchange/MXMapInfo.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/core/ManiaExchange/MXMapInfo.php b/application/core/ManiaExchange/MXMapInfo.php index b5f15417..927cf7e4 100644 --- a/application/core/ManiaExchange/MXMapInfo.php +++ b/application/core/ManiaExchange/MXMapInfo.php @@ -36,10 +36,10 @@ class MXMapInfo { if ($this->prefix == 'tm' || !property_exists($mx, "MapID")) { $this->id = $mx->TrackID; - $this->uid = $mx->TrackUID; + $this->uid = isset($mx->TrackUID) ? $mx->TrackUID : ''; } else { $this->id = $mx->MapID; - $this->uid = $mx->MapUID; + $this->uid = isset($mx->MapUID) ? $mx->MapUID : ''; } if (!isset($mx->GbxMapName) || $mx->GbxMapName == '?') {