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

pull/53/head
Aleksander Machniak 12 years ago
parent 4fe8f923a9
commit 04c856774d

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

Loading…
Cancel
Save