diff --git a/resources/DirectoryLister.php b/resources/DirectoryLister.php index c7bdc7c..5615b77 100644 --- a/resources/DirectoryLister.php +++ b/resources/DirectoryLister.php @@ -681,12 +681,8 @@ class DirectoryLister { protected function _getAppUrl() { // Get the server protocol - if (!empty($_SERVER['HTTPS'])) { - if ($_SERVER['HTTPS']!=="off" { - $protocol = 'https://'; - } else { - $protocol = 'http://'; - } + if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS']!=="off") { + $protocol = 'https://'; } else { $protocol = 'http://'; }