mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-05-24 22:47:06 -04:00
fix Server->Hostname()
This commit is contained in:
@@ -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'};
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user