Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue coral-erm#77: Undefined index: auth/…/Utility.php Line 71
Browse files Browse the repository at this point in the history
PHP Notice: Undefined index: HTTPS in ./auth/admin/classes/common/Utility.php on line 71
t4k committed Oct 13, 2017
1 parent b63d72c commit 9071386
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion auth/admin/classes/common/Utility.php
Original file line number Diff line number Diff line change
@@ -68,7 +68,9 @@ public function getCORALPath(){
//returns page URL up to /coral/
public function getCORALURL(){
$pageURL = 'http';
if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
if (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on") {
$pageURL .= "s";
}
$pageURL .= "://";
if ($_SERVER["SERVER_PORT"] != "80") {
$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"];

0 comments on commit 9071386

Please sign in to comment.