Till Brehm
2016-07-11 a62af307fd9bf33b34df292120cb73e37d8223da
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
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']);
        }