insert the owner of mail domains when creating

this isn't a complete fix because we do not fix existing tables

See: #1187
This commit is contained in:
Antoine Beaupré 2009-08-04 18:51:31 +00:00
parent 83efd6f0ad
commit 049042dd87
1 changed files with 1 additions and 1 deletions

View File

@ -637,7 +637,7 @@ class m_mail {
function alternc_add_mx_domain($dom) {
global $err,$cuid,$db,$mem;
$err->log("mail","alternc_add_mx_domain",$dom);
$db->query("INSERT INTO mail_domain (mail,alias) VALUES ('$dom','$dom');");
$db->query("INSERT INTO mail_domain (mail,alias,cuid) VALUES ('$dom','$dom', '$cuid');");
// Create the postmaster email for this new domain :
$this->add_mail($dom,"postmaster",0,"",$mem->user["mail"]);
return true;