aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaZderMind2015-07-13 13:55:34 +0200
committerMaZderMind2015-07-13 13:55:34 +0200
commitf581ebf00c7443c7b346b2085279fe60438e8954 (patch)
tree016fd212b50ac3a0f6de2f7439cb710c0cf32421
parent0f228203aed15e8f992f693ceae56db25fdf439e (diff)
simplify comparison
-rw-r--r--lib/helper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/helper.php b/lib/helper.php
index 1dd37ff..c6fd9a9 100644
--- a/lib/helper.php
+++ b/lib/helper.php
@@ -2,7 +2,7 @@
function ssl()
{
- return isset($_SERVER['HTTPS']) && strcmp($_SERVER['HTTPS'], 'on') == 0;
+ return isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] == 'on');
}
function proto()