From 84c0c83cc19a280fc63aadae6d0c007e28e495eb Mon Sep 17 00:00:00 2001 From: Niko Date: Wed, 28 Jun 2017 19:15:09 +0300 Subject: [PATCH] Fixed error with ssl Fixed error PHP Notice: Undefined index: ssl on line 230. --- bb-library/Server/Manager/Virtualmin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bb-library/Server/Manager/Virtualmin.php b/bb-library/Server/Manager/Virtualmin.php index eeefba8..c980100 100644 --- a/bb-library/Server/Manager/Virtualmin.php +++ b/bb-library/Server/Manager/Virtualmin.php @@ -227,7 +227,7 @@ private function _makeRequest($command, $params = array(), $format = 'json') */ private function _getUrl() { - $url = $this->_config['ssl'] ? 'https://' : 'http://'; + $url = $this->_config['host'] ? 'https://' : 'http://'; $url .= $this->_config['host'] . ' : ' . $this->_config['port'] . '/virtual-server/remote.cgi'; return $url; @@ -706,4 +706,4 @@ private function _modifyReseller(Server_Account $a) return false; } -} +}