Skip to content

Commit a62af30

Browse files
author
Till Brehm
committed
Merge branch 'spamfilter-delete-fix' into 'stable-3.1'
Fixed deleting spamfilter users when deleting mail domain Signed-off-by: Kristián Feldsam <feldsam@gmail.com> See merge request !377
2 parents 58b8f2b + fb024aa commit a62af30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/web/mail/mail_domain_del.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function onBeforeDelete() {
7878
}
7979

8080
// Delete all spamfilters that belong to this domain
81-
$records = $app->db->queryAllRecords("SELECT id FROM spamfilter_users WHERE email = ?", '%@' . $domain);
81+
$records = $app->db->queryAllRecords("SELECT id FROM spamfilter_users WHERE email like ?", '%@' . $domain);
8282
foreach($records as $rec) {
8383
$app->db->datalogDelete('spamfilter_users', 'id', $rec['id']);
8484
}

0 commit comments

Comments
 (0)