summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-09-08 10:39:14 +0000
committeralecpl <alec@alec.pl>2009-09-08 10:39:14 +0000
commite8d8b6fd864fd9e3792b8032b1bc40b6ec2b1b7a (patch)
tree8700a64653b7a49a6e638f0b2ad9f07d0c2eaa28
parent11ea2ac890100f4000b7db4b33672a8ad8ca01fb (diff)
- fix warning when importing squirrelmail rules
-rw-r--r--plugins/managesieve/lib/rcube_sieve.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/managesieve/lib/rcube_sieve.php b/plugins/managesieve/lib/rcube_sieve.php
index 3bb150e44..59f7cfcf4 100644
--- a/plugins/managesieve/lib/rcube_sieve.php
+++ b/plugins/managesieve/lib/rcube_sieve.php
@@ -117,7 +117,7 @@ class rcube_sieve
$script = $this->_convert_from_squirrel_rules($script);
- $this->script = new rcube_sieve_script($script);
+ $this->script = new rcube_sieve_script($script, $this->disabled);
$this->save();
@@ -184,7 +184,7 @@ class rcube_sieve_script
* @param string Script's text content
* @param array Disabled extensions
*/
- public function __construct($script, $disabled)
+ public function __construct($script, $disabled=NULL)
{
if (!empty($disabled))
foreach ($disabled as $ext)