v1.2.2-cvs
----------
+[jan] Fix maildrop rules without conditions (almarin@um.es, Bug #8103).
[cjh] Fix checks for the forward_file and forward_script procmail parameters
in the VFS driver (Bug #7811).
[cjh] Add %d (domain) as a replaceable variable in the vfs_path parameter
return '';
}
- $text[] = "if( \\";
+ if (count($this->_conditions) > 0) {
+
+ $text[] = "if( \\";
- if (count($this->_conditions > 1)) {
$nest = false;
foreach ($this->_conditions as $condition) {
$cond = $nest ? $this->_combine : ' ';
$text[] = $cond . $condition['condition'] . $condition['flags'] . $condition['extra'] . " \\";
$nest = true;
}
- }
- $text[] = ')';
+ $text[] = ')';
+ }
foreach ($this->_action as $val) {
$text[] = $val;