don't limit this query to emaildomains

...to catch possibly existing orphaned entries in the mail-user/mail-
forwarding tables
This commit is contained in:
Daniel Reichelt 2016-09-17 07:33:48 +02:00
parent 1664896062
commit 8e1a1043a5

View File

@ -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
));