From f581ebf00c7443c7b346b2085279fe60438e8954 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Mon, 13 Jul 2015 13:55:34 +0200 Subject: simplify comparison --- lib/helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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() -- cgit v1.2.3