mirror of
https://github.com/voc/streaming-website
synced 2024-11-10 06:34:17 +00:00
simplify comparison
This commit is contained in:
parent
0f228203ae
commit
f581ebf00c
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
function ssl()
|
||||
{
|
||||
return isset($_SERVER['HTTPS']) && strcmp($_SERVER['HTTPS'], 'on') == 0;
|
||||
return isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] == 'on');
|
||||
}
|
||||
|
||||
function proto()
|
||||
|
|
Loading…
Reference in a new issue