simplify comparison

This commit is contained in:
MaZderMind 2015-07-13 13:55:34 +02:00
parent 0f228203ae
commit f581ebf00c

View file

@ -2,7 +2,7 @@
function ssl()
{
return isset($_SERVER['HTTPS']) && strcmp($_SERVER['HTTPS'], 'on') == 0;
return isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] == 'on');
}
function proto()