summaryrefslogtreecommitdiffstats
path: root/system/core/Common.php
diff options
context:
space:
mode:
authorRichard Deurwaarder (Xeli) <richard@xelification.com>2013-06-24 15:19:30 +0200
committerRichard Deurwaarder (Xeli) <richard@xelification.com>2013-06-24 15:19:30 +0200
commit98999976f6025d7ffcb04f8aa448518651fb0d89 (patch)
treed2c03b44bd71cfc23849050ee8e7f073b4ab57c2 /system/core/Common.php
parent7cc29451bb685d05b4faeb79762b1b291cb44b8b (diff)
some more readablility tweaks in system/core/Common
Diffstat (limited to 'system/core/Common.php')
-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;
}
}