From 8e1a1043a5bd9934c8dcb99ac88db0c6c81432fe Mon Sep 17 00:00:00 2001 From: Daniel Reichelt Date: Sat, 17 Sep 2016 07:33:48 +0200 Subject: [PATCH] don't limit this query to emaildomains ...to catch possibly existing orphaned entries in the mail-user/mail- forwarding tables --- admin_domains.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin_domains.php b/admin_domains.php index c840b277..ded6616e 100644 --- a/admin_domains.php +++ b/admin_domains.php @@ -166,7 +166,7 @@ if ($page == 'domains' || $page == 'overview') { $subresult_stmt = Database::prepare(" SELECT `id` FROM `" . TABLE_PANEL_DOMAINS . "` - WHERE (`id` = :id OR `parentdomainid` = :id " . $rsd_sql . ") AND `isemaildomain` = '1'"); + WHERE (`id` = :id OR `parentdomainid` = :id " . $rsd_sql . ")"); Database::pexecute($subresult_stmt, array( 'id' => $id ));