fix line testing for Hostname
parent
7b253bcd7e
commit
00ef849908
|
@ -21,7 +21,7 @@ class Server {
|
|||
return $this->{'Name'};
|
||||
}
|
||||
public function Hostname() {
|
||||
if ( ! isset( $this->{'Hostname'} ) ) {
|
||||
if ( ( ! isset( $this->{'Hostname'} ) and $this->{'Hostname'} != '' ) ) {
|
||||
return $this->{'Name'};
|
||||
}
|
||||
return $this->{'Hostname'};
|
||||
|
|
Loading…
Reference in New Issue