summaryrefslogtreecommitdiff
path: root/plugins/managesieve/lib/rcube_sieve.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-09-20 06:33:47 +0000
committeralecpl <alec@alec.pl>2009-09-20 06:33:47 +0000
commitfcc34c0cace7c35c4ad82911f1c7c09f40939dfb (patch)
treedd5cff6d252af13fc97115a8301ef8791de9d76b /plugins/managesieve/lib/rcube_sieve.php
parent0dd842dbf5a63af81fc2abfc884dd9889e59b269 (diff)
- Fix first rule deleting (#1486140)
Diffstat (limited to 'plugins/managesieve/lib/rcube_sieve.php')
-rw-r--r--plugins/managesieve/lib/rcube_sieve.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/managesieve/lib/rcube_sieve.php b/plugins/managesieve/lib/rcube_sieve.php
index 2ab30c54d..2490aca6e 100644
--- a/plugins/managesieve/lib/rcube_sieve.php
+++ b/plugins/managesieve/lib/rcube_sieve.php
@@ -264,9 +264,10 @@ class rcube_sieve_script
{
$script = '';
$exts = array();
+ $idx = 0;
// rules
- foreach ($this->content as $idx => $rule)
+ foreach ($this->content as $rule)
{
$extension = '';
$tests = array();
@@ -367,7 +368,8 @@ class rcube_sieve_script
}
$script .= "}\n";
-
+ $idx++;
+
if ($extension && !isset($exts[$extension]))
$exts[$extension] = $extension;
}