From: Andrew Dolgov Date: Tue, 22 Jan 2013 15:21:40 +0000 (+0400) Subject: sessions: prevent HTTPS warning X-Git-Tag: 1.7.0~39 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=6addc13f46c29674bdf82986319f1aad8abf50cd;p=tt-rss.git sessions: prevent HTTPS warning --- diff --git a/include/sessions.php b/include/sessions.php index e692d116..bd07c199 100644 --- a/include/sessions.php +++ b/include/sessions.php @@ -7,7 +7,7 @@ $session_expire = SESSION_EXPIRE_TIME; //seconds $session_name = (!defined('TTRSS_SESSION_NAME')) ? "ttrss_sid" : TTRSS_SESSION_NAME; - if ($_SERVER['HTTPS'] == "on") { + if (@$_SERVER['HTTPS'] == "on") { $session_name .= "_ssl"; ini_set("session.cookie_secure", true); }