db v2.4.0

purge the "-"  if the reapter/hotspot call has no suffix. (YSF)
This commit is contained in:
LX1IQ 2019-06-03 09:02:52 +02:00 committed by GitHub
parent f643fc512a
commit 12eebc9011
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 2 deletions

View File

@ -24,7 +24,7 @@ class xReflector {
private $CallingHomeOverrideIP = null;
private $Transferinterlink = null;
private $Interlinkfile = null;
public $Interlinks = null;
public $Interlinks = null;
private $InterlinkXML = null;
private $ReflectorXML = null;
@ -239,7 +239,12 @@ class xReflector {
$i = 0;
while ($i < $this->NodeCount()) {
if ($this->Nodes[$i]->GetRandomID() == $RandomId) {
return $this->Nodes[$i]->GetCallSign().'-'.$this->Nodes[$i]->GetSuffix();
if (trim($this->Nodes[$i]->GetSuffix()) == "") {
return $this->Nodes[$i]->GetCallSign();
}
else {
return $this->Nodes[$i]->GetCallSign().'-'.$this->Nodes[$i]->GetSuffix();
}
}
$i++;
}