]> git.wh0rd.org Git - tt-rss.git/commitdiff
only set HIDE_READ_FEEDS cookie when logged on user is detected (closes #34)
authorAndrew Dolgov <fox@bah.spb.su>
Sat, 21 Jan 2006 06:19:42 +0000 (07:19 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sat, 21 Jan 2006 06:19:42 +0000 (07:19 +0100)
backend.php

index f70bc8e9e33bdbc07d46ade9a02613e696761e64..020744073278b5868106200a9ccae67ca621d061 100644 (file)
                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"];