From 6570a8d8557dc855666840b3dfebf00952f2ea9a Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 2 Oct 2015 18:22:19 +0000 Subject: [PATCH] fix Server->Hostname() --- web/includes/Server.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/includes/Server.php b/web/includes/Server.php index c96dbf37a..308099b77 100644 --- a/web/includes/Server.php +++ b/web/includes/Server.php @@ -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'}; } } ?>