only set HIDE_READ_FEEDS cookie when logged on user is detected (closes #34)

This commit is contained in:
Andrew Dolgov 2006-01-21 07:19:42 +01:00
parent 8db2a84dcd
commit 4053b540ba
1 changed files with 7 additions and 5 deletions

View File

@ -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"];