From: Andrew Dolgov Date: Mon, 18 Mar 2013 12:15:32 +0000 (+0400) Subject: googlereadertheme: check for UID being present X-Git-Tag: 1.7.5~135 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=11191fdba1e7e986b8c144394943e44ccac053f0;p=tt-rss.git googlereadertheme: check for UID being present --- diff --git a/plugins/googlereadertheme/init.php b/plugins/googlereadertheme/init.php index 76e6fa42..4ee4a4ba 100644 --- a/plugins/googlereadertheme/init.php +++ b/plugins/googlereadertheme/init.php @@ -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() {