return proper hostname when not using multiple servers

This commit is contained in:
Isaac Connor 2018-02-12 14:44:58 -05:00
parent 62b0a1ecdc
commit 9fa28106e5
1 changed files with 1 additions and 0 deletions

View File

@ -69,6 +69,7 @@ class Server {
if ( $this->Id() ) {
return ZM_BASE_PROTOCOL . '://'. $this->Hostname();
} else {
return ZM_BASE_PROTOCOL . '://'. $_SERVER['SERVER_NAME'];
return '';
}
}