From f78a55dc63dcbf5dceaf0db407e682ace4c231ce Mon Sep 17 00:00:00 2001 From: andryyy Date: Tue, 10 Jan 2017 22:09:18 +0100 Subject: [PATCH] Check if domain is alias domain --- data/web/inc/functions.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/data/web/inc/functions.inc.php b/data/web/inc/functions.inc.php index 37acb736..327fdb32 100644 --- a/data/web/inc/functions.inc.php +++ b/data/web/inc/functions.inc.php @@ -314,6 +314,10 @@ function mailbox_add_domain($postarray) { WHERE `domain` = :domain"); $stmt->execute(array(':domain' => $domain)); $num_results = count($stmt->fetchAll(PDO::FETCH_ASSOC)); + $stmt = $pdo->prepare("SELECT `alias_domain` FROM `alias_domain` + WHERE `alias_domain` = :domain"); + $stmt->execute(array(':domain' => $domain)); + $num_results = $num_results + count($stmt->fetchAll(PDO::FETCH_ASSOC)); } catch(PDOException $e) { $_SESSION['return'] = array(