diff options
author | alecpl <alec@alec.pl> | 2009-09-20 06:33:47 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2009-09-20 06:33:47 +0000 |
commit | fcc34c0cace7c35c4ad82911f1c7c09f40939dfb (patch) | |
tree | dd5cff6d252af13fc97115a8301ef8791de9d76b /plugins/managesieve/lib | |
parent | 0dd842dbf5a63af81fc2abfc884dd9889e59b269 (diff) |
- Fix first rule deleting (#1486140)
Diffstat (limited to 'plugins/managesieve/lib')
-rw-r--r-- | plugins/managesieve/lib/rcube_sieve.php | 6 |
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; } |