]> git.wh0rd.org Git - tt-rss.git/commitdiff
sessions: prevent HTTPS warning
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 22 Jan 2013 15:21:40 +0000 (19:21 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 22 Jan 2013 15:21:40 +0000 (19:21 +0400)
include/sessions.php

index e692d11697a67eb07251754af79fe2232315f9c1..bd07c19949428a61bb84068962cbf89d1894fa13 100644 (file)
@@ -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);
        }