fix Server->Hostname()

This commit is contained in:
Isaac Connor
2015-10-02 18:22:19 +00:00
parent e12640ec73
commit 6570a8d855

View File

@@ -21,10 +21,10 @@ class Server {
return $this->{'Name'};
}
public function Hostname() {
if ( ( ! isset( $this->{'Hostname'} ) and $this->{'Hostname'} != '' ) ) {
return $this->{'Name'};
if ( isset( $this->{'Hostname'} ) and ( $this->{'Hostname'} != '' ) ) {
return $this->{'Hostname'};
}
return $this->{'Hostname'};
return $this->{'Name'};
}
}
?>