diff options
author | Richard Deurwaarder (Xeli) <richard@xelification.com> | 2013-06-24 15:19:30 +0200 |
---|---|---|
committer | Richard Deurwaarder (Xeli) <richard@xelification.com> | 2013-06-24 15:19:30 +0200 |
commit | 98999976f6025d7ffcb04f8aa448518651fb0d89 (patch) | |
tree | d2c03b44bd71cfc23849050ee8e7f073b4ab57c2 /system/core | |
parent | 7cc29451bb685d05b4faeb79762b1b291cb44b8b (diff) |
some more readablility tweaks in system/core/Common
Diffstat (limited to 'system/core')
-rw-r--r-- | system/core/Common.php | 5 |
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; } } |