Commit d4237380 authored by tbrehm's avatar tbrehm

Fixed: FS#2304 - Users spamfilters are not deleted when deleting a domain

parent c8437e84
......@@ -78,7 +78,7 @@ class page_action extends tform_actions {
}
// Delete all spamfilters that belong to this domain
$records = $app->db->queryAllRecords("SELECT id FROM spamfilter_users WHERE email = '@".$app->db->quote($domain)."'");
$records = $app->db->queryAllRecords("SELECT id FROM spamfilter_users WHERE email = '%@".$app->db->quote($domain)."'");
foreach($records as $rec) {
$app->db->datalogDelete('spamfilter_users','id',$rec['id']);
}
......
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