edit-domain.php:

- only change transport if $CONF['transport'] is YES. Otherwise leave it 
  untouched (instead of changing it to $CONF['transport_default'])


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@504 a1433add-5e2c-0410-b055-b7f2511e0802
postfixadmin-2.3
Christian Boltz 17 years ago
parent 826ec87d83
commit c4c79f2651

@ -99,8 +99,12 @@ if ($_SERVER['REQUEST_METHOD'] == "POST")
$sqlActive = db_get_boolean(False);
}
$sqltransport = "";
if($CONF['transport'] != 'NO') { # only change transport if it is allowed in config. Otherwise, keep the old value.
$sqltransport = "transport='$fTransport',";
}
$result = db_query ("UPDATE $table_domain SET description='$fDescription',aliases=$fAliases,mailboxes=$fMailboxes,maxquota=$fMaxquota,transport='$fTransport',backupmx='$sqlBackupmx',active='$sqlActive',modified=NOW() WHERE domain='$domain'");
$result = db_query ("UPDATE $table_domain SET description='$fDescription',aliases=$fAliases,mailboxes=$fMailboxes,maxquota=$fMaxquota,$sqltransport backupmx='$sqlBackupmx',active='$sqlActive',modified=NOW() WHERE domain='$domain'");
if ($result['rows'] == 1)
{
header ("Location: list-domain.php");

Loading…
Cancel
Save