Commit cc604f7a authored by tbrehm's avatar tbrehm

Fix in sieve plugin.

parent c6e05a8e
......@@ -123,8 +123,8 @@ class maildeliver_plugin {
$sql = "SELECT * FROM mail_forwarding WHERE type = 'alias' AND destination = '".$app->db->quote($data["new"]["email"])."'";
$records = $app->db->queryAllRecords($sql);
$addresses = '';
if(is_array($records)) {
$addresses .= ':addresses [';
if(is_array($records) && count($records) > 0) {
$addresses .= ':addresses ["'.$data["new"]["email"].'",';
foreach($records as $rec) {
$addresses .= '"'.$rec['source'].'",';
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment