[Web] Allow to rename alias to Alias
This commit is contained in:
parent
f7e5f8b51f
commit
05a2301ea6
@ -1695,6 +1695,7 @@ function mailbox($_action, $_type, $_data = null, $_extra = null) {
|
|||||||
);
|
);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if (strtolower($is_now['address']) != strtolower($address)) {
|
||||||
$stmt = $pdo->prepare("SELECT `address` FROM `alias`
|
$stmt = $pdo->prepare("SELECT `address` FROM `alias`
|
||||||
WHERE `address`= :address OR `address` IN (
|
WHERE `address`= :address OR `address` IN (
|
||||||
SELECT `username` FROM `mailbox`, `alias_domain`
|
SELECT `username` FROM `mailbox`, `alias_domain`
|
||||||
@ -1715,6 +1716,7 @@ function mailbox($_action, $_type, $_data = null, $_extra = null) {
|
|||||||
);
|
);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
$stmt = $pdo->prepare("SELECT `domain` FROM `domain`
|
$stmt = $pdo->prepare("SELECT `domain` FROM `domain`
|
||||||
WHERE `domain`= :domain1 OR `domain` = (SELECT `target_domain` FROM `alias_domain` WHERE `alias_domain` = :domain2)");
|
WHERE `domain`= :domain1 OR `domain` = (SELECT `target_domain` FROM `alias_domain` WHERE `alias_domain` = :domain2)");
|
||||||
$stmt->execute(array(':domain1' => $domain, ':domain2' => $domain));
|
$stmt->execute(array(':domain1' => $domain, ':domain2' => $domain));
|
||||||
|
Loading…
Reference in New Issue
Block a user