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 17:07:28 +0100
commit268a28efb25193e5f48e7ba8e41f0bca8306c34e (patch)
tree331ffdad718db09f11f95089808995125907b134 /plugins
parent377793d67c6b19327212bf2ac5647a4f01a48a48 (diff)
Don't force 'stop' action on last rule in a script
Diffstat (limited to 'plugins')
-rw-r--r--plugins/managesieve/lib/rcube_sieve.php2
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');
}
}