diff options
author | Andrew Dolgov <[email protected]> | 2013-03-18 16:15:32 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-03-18 16:15:32 +0400 |
commit | 11191fdba1e7e986b8c144394943e44ccac053f0 (patch) | |
tree | 46324b01454415209c9659d0df7464448a8ddd48 | |
parent | 08dfc22391eab9934cde1f747240d9ff5bc50b41 (diff) |
googlereadertheme: check for UID being present
-rw-r--r-- | plugins/googlereadertheme/init.php | 6 |
1 files changed, 4 insertions, 2 deletions
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() { |