only set HIDE_READ_FEEDS cookie when logged on user is detected (closes #34)
This commit is contained in:
parent
8db2a84dcd
commit
4053b540ba
12
backend.php
12
backend.php
|
@ -53,11 +53,13 @@
|
||||||
pg_query("set client_encoding = 'utf-8'");
|
pg_query("set client_encoding = 'utf-8'");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (get_pref($link, "HIDE_READ_FEEDS") == "true") {
|
if ($_SESSION["uid"]) {
|
||||||
setcookie("ttrss_vf_hreadf", 1);
|
if (get_pref($link, "HIDE_READ_FEEDS") == "true") {
|
||||||
} else {
|
setcookie("ttrss_vf_hreadf", 1);
|
||||||
setcookie("ttrss_vf_hreadf", 0);
|
} else {
|
||||||
}
|
setcookie("ttrss_vf_hreadf", 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$fetch = $_GET["fetch"];
|
$fetch = $_GET["fetch"];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue