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 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;
@ -114,4 +117,3 @@ class MXMapInfo {
} }
} }
} }
}