Merge pull request #2257 from guicapanema/patch-1

Adds missing values to alias INSERT statement.
This commit is contained in:
André Peters 2019-01-31 12:39:33 +01:00 committed by GitHub
commit f1b8b59968
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -604,7 +604,7 @@ function mailbox($_action, $_type, $_data = null, $_extra = null) {
return false;
}
$stmt = $pdo->prepare("INSERT INTO `alias` (`address`, `public_comment`, `private_comment`, `goto`, `domain`, `active`)
VALUES (:address, :goto, :domain, :active)");
VALUES (:address, :public_comment, :private_comment, :goto, :domain, :active)");
if (!filter_var($address, FILTER_VALIDATE_EMAIL) === true) {
$stmt->execute(array(
':address' => '@'.$domain,