diff options
Diffstat (limited to 'plugins/markasjunk/markasjunk.php')
-rw-r--r-- | plugins/markasjunk/markasjunk.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/markasjunk/markasjunk.php b/plugins/markasjunk/markasjunk.php index cf81883fc..9f75590c8 100644 --- a/plugins/markasjunk/markasjunk.php +++ b/plugins/markasjunk/markasjunk.php @@ -15,9 +15,13 @@ class markasjunk extends rcube_plugin function init() { - $this->register_action('plugin.markasjunk', array($this, 'request_action')); - $rcmail = rcmail::get_instance(); + + if (!$rcmail->user->ID) + return; + + $this->register_action('plugin.markasjunk', array($this, 'request_action')); + if ($rcmail->action == '' || $rcmail->action == 'show') { $skin_path = $this->local_skin_path(); $this->include_script('markasjunk.js'); |