]> git.wh0rd.org - tt-rss.git/commitdiff
googlereadertheme: check for UID being present
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 18 Mar 2013 12:15:32 +0000 (16:15 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 18 Mar 2013 12:15:32 +0000 (16:15 +0400)
plugins/googlereadertheme/init.php

index 76e6fa421c78875e5ec12787a6891ebb79513ce2..4ee4a4ba3271cc613a595e52acfbc0e7d8fc7aad 100644 (file)
@@ -14,8 +14,10 @@ class GoogleReaderTheme extends Plugin {
                $this->link = $host->get_link();
                $this->host = $host;
 
-               // force-enable combined mode
-               set_pref($this->link, "COMBINED_DISPLAY_MODE", true);
+               if ($_SESSION["uid"]) {
+                       // force-enable combined mode
+                       set_pref($this->link, "COMBINED_DISPLAY_MODE", true, $_SESSION["uid"]);
+               }
        }
 
        function get_css() {