summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--system/core/Common.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/system/core/Common.php b/system/core/Common.php
index f3a1b5055..cb087cb22 100644
--- a/system/core/Common.php
+++ b/system/core/Common.php
@@ -346,7 +346,7 @@ if ( ! function_exists('is_https'))
*/
function is_https()
{
- if(isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) === 'on')
+ if (isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) === 'on')
{
return TRUE;
}
@@ -354,10 +354,11 @@ if ( ! function_exists('is_https'))
{
return TRUE;
}
- elseif (isset($_SERVER['HTTP_FRONT_END_HTTPS']) && $_SERVER['HTTP_FRONT_END_HTTPS'] == 'on')
+ elseif (isset($_SERVER['HTTP_FRONT_END_HTTPS']) && $_SERVER['HTTP_FRONT_END_HTTPS'] === 'on')
{
return TRUE;
}
+
return FALSE;
}
}