summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-05-09 09:36:06 +0200
committerAleksander Machniak <alec@alec.pl>2013-05-09 09:36:06 +0200
commit2a3e774c60b10e9593b5a3f9596fa68f1f389d86 (patch)
treee09f71dde6b11cb6f6bd3ef3f87da51298f46939
parent9b8d22ebe14a2a6d3f5c8bebee0a3126a72521cc (diff)
Fix possible error on ajax request
-rw-r--r--plugins/managesieve/managesieve.php5
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');