only set HIDE_READ_FEEDS cookie when logged on user is detected (closes #34)
This commit is contained in:
parent
8db2a84dcd
commit
4053b540ba
1 changed files with 7 additions and 5 deletions
10
backend.php
10
backend.php
|
@ -53,10 +53,12 @@
|
|||
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"];
|
||||
|
|
Loading…
Reference in a new issue