summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/server/lib/session.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/server/lib/session.php b/examples/server/lib/session.php
index 76b28bd..201b6ee 100644
--- a/examples/server/lib/session.php
+++ b/examples/server/lib/session.php
@@ -31,7 +31,7 @@ function getServerURL()
$path = $_SERVER['SCRIPT_NAME'];
$host = $_SERVER['HTTP_HOST'];
$port = $_SERVER['SERVER_PORT'];
- $s = $_SERVER['HTTPS'] ? 's' : '';
+ $s = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] ? 's' : '';
if (($s && $port == "443") || (!$s && $port == "80")) {
$p = '';
} else {