summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-18 16:15:32 +0400
committerAndrew Dolgov <[email protected]>2013-03-18 16:15:32 +0400
commit11191fdba1e7e986b8c144394943e44ccac053f0 (patch)
tree46324b01454415209c9659d0df7464448a8ddd48 /plugins
parent08dfc22391eab9934cde1f747240d9ff5bc50b41 (diff)
googlereadertheme: check for UID being present
Diffstat (limited to 'plugins')
-rw-r--r--plugins/googlereadertheme/init.php6
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() {