diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-05-09 09:36:06 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-05-09 09:36:06 +0200 |
commit | 2a3e774c60b10e9593b5a3f9596fa68f1f389d86 (patch) | |
tree | e09f71dde6b11cb6f6bd3ef3f87da51298f46939 /plugins/managesieve/managesieve.php | |
parent | 9b8d22ebe14a2a6d3f5c8bebee0a3126a72521cc (diff) |
Fix possible error on ajax request
Diffstat (limited to 'plugins/managesieve/managesieve.php')
-rw-r--r-- | plugins/managesieve/managesieve.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/managesieve/managesieve.php b/plugins/managesieve/managesieve.php index fc2a79ddb..f451a810e 100644 --- a/plugins/managesieve/managesieve.php +++ b/plugins/managesieve/managesieve.php @@ -109,6 +109,11 @@ class managesieve extends rcube_plugin */ function mail_task_handler() { + // make sure we're not in ajax request + if ($this->rc->output->type != 'html') { + return; + } + // use jQuery for popup window $this->require_plugin('jqueryui'); |