From 4053b540badb35d465ee4474f3e3b4607514ffe8 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 21 Jan 2006 07:19:42 +0100 Subject: [PATCH] only set HIDE_READ_FEEDS cookie when logged on user is detected (closes #34) --- backend.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/backend.php b/backend.php index f70bc8e9e..020744073 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"];