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
| | |
| | | } |
| | | |
| | | // 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) { |
| | | $app->db->datalogDelete('spamfilter_users', 'id', $rec['id']); |
| | | } |