From 11191fdba1e7e986b8c144394943e44ccac053f0 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 18 Mar 2013 16:15:32 +0400 Subject: [PATCH] googlereadertheme: check for UID being present --- plugins/googlereadertheme/init.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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() { -- 2.39.5