mx object cleanup
This commit is contained in:
parent
2650db54e3
commit
7627546baa
@ -25,12 +25,15 @@ class MXMapInfo {
|
|||||||
*
|
*
|
||||||
* @param String $prefix MX URL prefix
|
* @param String $prefix MX URL prefix
|
||||||
* @param $mx
|
* @param $mx
|
||||||
* @internal param Object $map The MX map data from MXInfoSearcher
|
|
||||||
* @return MXMapInfo
|
* @return MXMapInfo
|
||||||
*/
|
*/
|
||||||
public function __construct($prefix, $mx) {
|
public function __construct($prefix, $mx) {
|
||||||
$this->prefix = $prefix;
|
$this->prefix = $prefix;
|
||||||
if ($mx) {
|
|
||||||
|
if (!$mx) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if ($this->prefix == 'tm') {
|
if ($this->prefix == 'tm') {
|
||||||
$this->dir = 'tracks';
|
$this->dir = 'tracks';
|
||||||
$this->id = $mx->TrackID;
|
$this->id = $mx->TrackID;
|
||||||
@ -113,5 +116,4 @@ class MXMapInfo {
|
|||||||
$this->replayurl = '';
|
$this->replayurl = '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user