From 04c856774d7a42824664462482cf4ebf4b4259f3 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Fri, 21 Dec 2012 14:31:07 +0100 Subject: [PATCH] Don't force 'stop' action on last rule in a script --- plugins/managesieve/lib/Roundcube/rcube_sieve.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/managesieve/lib/Roundcube/rcube_sieve.php b/plugins/managesieve/lib/Roundcube/rcube_sieve.php index 16c584b7d..4f66bf029 100644 --- a/plugins/managesieve/lib/Roundcube/rcube_sieve.php +++ b/plugins/managesieve/lib/Roundcube/rcube_sieve.php @@ -325,7 +325,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'); } }