From d4b4161f68a338dc5089b300c11ea7ef04be03c6 Mon Sep 17 00:00:00 2001 From: kremsy Date: Sat, 15 Feb 2014 22:53:20 +0100 Subject: [PATCH] mx manager fix --- application/core/ManiaExchange/MXMapInfo.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/application/core/ManiaExchange/MXMapInfo.php b/application/core/ManiaExchange/MXMapInfo.php index 38cc80f2..b5f15417 100644 --- a/application/core/ManiaExchange/MXMapInfo.php +++ b/application/core/ManiaExchange/MXMapInfo.php @@ -7,7 +7,7 @@ use ManiaControl\Formatter; /** * Mania Exchange Map Info Object * - * @author xymph + * @author Xymph * @updated lukas and steeffeen */ class MXMapInfo { @@ -35,9 +35,11 @@ class MXMapInfo { } if ($this->prefix == 'tm' || !property_exists($mx, "MapID")) { - $this->id = $mx->TrackID; + $this->id = $mx->TrackID; + $this->uid = $mx->TrackUID; } else { - $this->id = $mx->MapID; + $this->id = $mx->MapID; + $this->uid = $mx->MapUID; } if (!isset($mx->GbxMapName) || $mx->GbxMapName == '?') { @@ -46,7 +48,6 @@ class MXMapInfo { $this->name = Formatter::stripDirtyCodes($mx->GbxMapName); } - $this->uid = isset($mx->MapUID) ? $mx->MapUID : ''; $this->userid = $mx->UserID; $this->author = $mx->Username; $this->uploaded = $mx->UploadedAt;