Check if domain is alias domain

master
andryyy 2017-01-10 22:09:18 +01:00
parent 86a8dc195e
commit f78a55dc63
1 changed files with 4 additions and 0 deletions

View File

@ -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(