Don't force 'stop' action on last rule in a script

release-0.7
Aleksander Machniak 12 years ago
parent 377793d67c
commit 268a28efb2

@ -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');
}
}

Loading…
Cancel
Save