diff options
author | Aleksander Machniak <alec@alec.pl> | 2012-12-21 14:31:07 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2012-12-21 17:07:28 +0100 |
commit | 268a28efb25193e5f48e7ba8e41f0bca8306c34e (patch) | |
tree | 331ffdad718db09f11f95089808995125907b134 /plugins | |
parent | 377793d67c6b19327212bf2ac5647a4f01a48a48 (diff) |
Don't force 'stop' action on last rule in a script
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/managesieve/lib/rcube_sieve.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/managesieve/lib/rcube_sieve.php b/plugins/managesieve/lib/rcube_sieve.php index 2ed2e54bf..679778453 100644 --- a/plugins/managesieve/lib/rcube_sieve.php +++ b/plugins/managesieve/lib/rcube_sieve.php @@ -328,7 +328,7 @@ class rcube_sieve continue 2; } } - if (empty($script->content[$idx+1]) || $script->content[$idx+1]['type'] != 'if') { + if (!empty($script->content[$idx+1]) && $script->content[$idx+1]['type'] != 'if') { $script->content[$idx]['actions'][] = array('type' => 'stop'); } } |