Browse Source

Fix undefined index warning in installation.

Tobias Kappé 1 year ago
parent
commit
52dbd55c7b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      install/index.php

+ 1 - 1
install/index.php

@@ -139,7 +139,7 @@
 	}
 
 	function is_server_https() {
-		return (!empty($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] != 'off')) || $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https';
+		return (!empty($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] != 'off')) || (!empty($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https');
 	}
 
 	function make_self_url_path() {