Aleksander Machniak
2012-12-21 04c856774d7a42824664462482cf4ebf4b4259f3
Don't force 'stop' action on last rule in a script
1 files modified
2 ■■■ changed files
plugins/managesieve/lib/Roundcube/rcube_sieve.php 2 ●●● patch | view | raw | blame | history
plugins/managesieve/lib/Roundcube/rcube_sieve.php
@@ -325,7 +325,7 @@
                        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');
                }
            }