fix line testing for Hostname

pull/1207/head
Isaac Connor 2015-10-02 15:29:17 +00:00
parent 7b253bcd7e
commit 00ef849908
1 changed files with 1 additions and 1 deletions

View File

@ -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'};