diff options
author | Aleksander Machniak <alec@alec.pl> | 2022-08-15 10:49:29 +0300 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2022-08-15 10:49:29 +0300 |
commit | bef70b5b15a915d75345e57ad502f57237aa0d68 (patch) | |
tree | 3f2886495d170b2426567ec7cb0be7141f3d3cbf /plugins | |
parent | 974e98baacff2fdddb4c4e7cf808dc9f7d35d16d (diff) |
Update changelog, CS fixes
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/managesieve/lib/Roundcube/rcube_sieve_script.php | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/plugins/managesieve/lib/Roundcube/rcube_sieve_script.php b/plugins/managesieve/lib/Roundcube/rcube_sieve_script.php index 3acd2e648..6c40b0baa 100644 --- a/plugins/managesieve/lib/Roundcube/rcube_sieve_script.php +++ b/plugins/managesieve/lib/Roundcube/rcube_sieve_script.php @@ -1510,32 +1510,33 @@ class rcube_sieve_script return; } - if (!empty($rule["tests"])) { - foreach ($rule["tests"] as &$test) { - $test["test"] = $test["type"]; + if (!empty($rule['tests'])) { + foreach ($rule['tests'] as &$test) { + $test['test'] = $test['type']; - if (isset($test["operator"])) { - $test["type"] = $test["operator"]; - unset($test["operator"]); + if (isset($test['operator'])) { + $test['type'] = $test['operator']; + unset($test['operator']); } - if (isset($test["header"])) { - $test["arg1"] = $test["header"]; - unset($test["header"]); - $test["arg2"] = $test["target"]; - unset($test["target"]); + if (isset($test['header'])) { + $test['arg1'] = $test['header']; + unset($test['header']); + $test['arg2'] = $test['target']; + unset($test['target']); } } } - if (!empty($rule["actions"])) { - foreach ($rule["actions"] as &$action) { - if ($action["type"] == "vacation") { - $action["reason"] = $action["msg"]; - unset($action["msg"]); + if (!empty($rule['actions'])) { + foreach ($rule['actions'] as &$action) { + if ($action['type'] == 'vacation') { + $action['reason'] = $action['msg']; + unset($action['msg']); } } } + $this->content[] = $rule; } } |