diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-09-20 06:33:47 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-09-20 06:33:47 +0000 |
| commit | 4578edf57198baa6f29cc4651507f7e66cd35281 (patch) | |
| tree | b041bd3c424744e49300dcc55eae74243957d889 /roundcubemail/plugins/managesieve/lib | |
| parent | ac9555efac0891c439bde4f49f1bf2314ec48d53 (diff) | |
- Fix first rule deleting (#1486140)
git-svn-id: https://svn.roundcube.net/trunk@2970 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/plugins/managesieve/lib')
| -rw-r--r-- | roundcubemail/plugins/managesieve/lib/rcube_sieve.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/roundcubemail/plugins/managesieve/lib/rcube_sieve.php b/roundcubemail/plugins/managesieve/lib/rcube_sieve.php index 2ab30c54d..2490aca6e 100644 --- a/roundcubemail/plugins/managesieve/lib/rcube_sieve.php +++ b/roundcubemail/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; } |
