Skip to content

Commit fb024aa

Browse files
committed
Fixed deleting spamfilter users when deleting mail domain
Signed-off-by: Kristián Feldsam <feldsam@gmail.com> # Conflicts: # interface/web/mail/mail_domain_del.php
1 parent e1ceb05 commit fb024aa

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)