Skip to content
Snippets Groups Projects
Commit a62af307 authored by Till Brehm's avatar Till Brehm
Browse files

Merge branch 'spamfilter-delete-fix' into 'stable-3.1'


Fixed deleting spamfilter users when deleting mail domain

Signed-off-by: default avatarKristián Feldsam <feldsam@gmail.com>

See merge request !377
parents 58b8f2bf fb024aaf
No related branches found
No related tags found
No related merge requests found
...@@ -78,7 +78,7 @@ class page_action extends tform_actions { ...@@ -78,7 +78,7 @@ class page_action extends tform_actions {
} }
// Delete all spamfilters that belong to this domain // Delete all spamfilters that belong to this domain
$records = $app->db->queryAllRecords("SELECT id FROM spamfilter_users WHERE email = ?", '%@' . $domain); $records = $app->db->queryAllRecords("SELECT id FROM spamfilter_users WHERE email like ?", '%@' . $domain);
foreach($records as $rec) { foreach($records as $rec) {
$app->db->datalogDelete('spamfilter_users', 'id', $rec['id']); $app->db->datalogDelete('spamfilter_users', 'id', $rec['id']);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment