From fb024aaf713356d3790933d5dad84b48ec76d23e Mon Sep 17 00:00:00 2001
From: Kristián Feldsam <feldsam@gmail.com>
Date: Sun, 10 Jul 2016 17:09:14 -0400
Subject: [PATCH] Fixed deleting spamfilter users when deleting mail domain
---
interface/web/mail/mail_domain_del.php | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/interface/web/mail/mail_domain_del.php b/interface/web/mail/mail_domain_del.php
index 6941cd6..bce8969 100644
--- a/interface/web/mail/mail_domain_del.php
+++ b/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']);
}
--
Gitblit v1.9.1