From: Andrew Dolgov Date: Sat, 21 Jan 2006 06:19:42 +0000 (+0100) Subject: only set HIDE_READ_FEEDS cookie when logged on user is detected (closes #34) X-Git-Tag: 1.1.3~58 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=4053b540badb35d465ee4474f3e3b4607514ffe8;p=tt-rss.git only set HIDE_READ_FEEDS cookie when logged on user is detected (closes #34) --- diff --git a/backend.php b/backend.php index f70bc8e9..02074407 100644 --- a/backend.php +++ b/backend.php @@ -53,11 +53,13 @@ pg_query("set client_encoding = 'utf-8'"); } - if (get_pref($link, "HIDE_READ_FEEDS") == "true") { - setcookie("ttrss_vf_hreadf", 1); - } else { - setcookie("ttrss_vf_hreadf", 0); - } + if ($_SESSION["uid"]) { + if (get_pref($link, "HIDE_READ_FEEDS") == "true") { + setcookie("ttrss_vf_hreadf", 1); + } else { + setcookie("ttrss_vf_hreadf", 0); + } + } $fetch = $_GET["fetch"];