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
| | |
| | | } |
| | | |
| | | // 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']); |
| | | } |