From 11191fdba1e7e986b8c144394943e44ccac053f0 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 18 Mar 2013 16:15:32 +0400 Subject: googlereadertheme: check for UID being present --- plugins/googlereadertheme/init.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/googlereadertheme/init.php b/plugins/googlereadertheme/init.php index 76e6fa421..4ee4a4ba3 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() { -- cgit v1.2.3