summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-12-21 14:31:07 +0100
committerAleksander Machniak <alec@alec.pl>2012-12-21 14:31:07 +0100
commit04c856774d7a42824664462482cf4ebf4b4259f3 (patch)
tree2850debb91f2ea0285d80ebd83f6b294c78a634d /plugins
parent4fe8f923a99b1c1b26e83e3f4b1e557deb131a34 (diff)
Don't force 'stop' action on last rule in a script
Diffstat (limited to 'plugins')
-rw-r--r--plugins/managesieve/lib/Roundcube/rcube_sieve.php2
1 files changed, 1 insertions, 1 deletions
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');
}
}