Kristián Feldsam
2016-07-07 fb024aaf713356d3790933d5dad84b48ec76d23e
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 files modified
2 ■■■ changed files
interface/web/mail/mail_domain_del.php 2 ●●● patch | view | raw | blame | history
interface/web/mail/mail_domain_del.php
@@ -78,7 +78,7 @@
        }
        // 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']);
        }