mx object cleanup

This commit is contained in:
kremsy 2014-05-11 19:57:33 +02:00
parent 2650db54e3
commit 7627546baa

View File

@ -25,12 +25,15 @@ class MXMapInfo {
*
* @param String $prefix MX URL prefix
* @param $mx
* @internal param Object $map The MX map data from MXInfoSearcher
* @return MXMapInfo
*/
public function __construct($prefix, $mx) {
$this->prefix = $prefix;
if ($mx) {
if (!$mx) {
return;
}
if ($this->prefix == 'tm') {
$this->dir = 'tracks';
$this->id = $mx->TrackID;
@ -113,5 +116,4 @@ class MXMapInfo {
$this->replayurl = '';
}
}
}
}