diff --git a/include/class.misc.php b/include/class.misc.php index b5ce887053eba3be836dbc976aa23447c2b8ca80..10130e2df607889a1c4f173ee9a0291f29de7429 100644 --- a/include/class.misc.php +++ b/include/class.misc.php @@ -145,7 +145,7 @@ class Misc { function currentURL() { $str = 'http'; - if ($_SERVER['HTTPS'] == 'on') { + if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') { $str .='s'; } $str .= '://';