summaryrefslogtreecommitdiff
path: root/plugins/archive/archive.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-02-05 14:06:53 +0000
committeralecpl <alec@alec.pl>2010-02-05 14:06:53 +0000
commit6a7d063e61f164be212bc7475aa6fb82ce1a8200 (patch)
tree436b753a92754ce754d45113fb62ba0b8daa74db /plugins/archive/archive.php
parentb77c9d4669ec9596c8d39d0dec29c8a343aaa155 (diff)
- don't load some stuff before login (#1486475)
Diffstat (limited to 'plugins/archive/archive.php')
-rw-r--r--plugins/archive/archive.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/archive/archive.php b/plugins/archive/archive.php
index 27887cef3..d2269baba 100644
--- a/plugins/archive/archive.php
+++ b/plugins/archive/archive.php
@@ -15,15 +15,17 @@ class archive extends rcube_plugin
function init()
{
+ $rcmail = rcmail::get_instance();
+
+ if (!$rcmail->user->ID)
+ return;
+
$this->register_action('plugin.archive', array($this, 'request_action'));
// There is no "Archived flags"
// $GLOBALS['IMAP_FLAGS']['ARCHIVED'] = 'Archive';
-
- $rcmail = rcmail::get_instance();
if ($rcmail->task == 'mail' && ($rcmail->action == '' || $rcmail->action == 'show')
&& ($archive_folder = $rcmail->config->get('archive_mbox'))) {
-
$skin_path = $this->local_skin_path();
$this->include_script('archive.js');