edit-domain.php: fix bug where editing a domain nukes the transport field (we actually were not checking the config field properly to see whether transport control was turned on or not; this fixes https://sourceforge.net/tracker/index.php?func=detail&aid=2378038&group_id=191583&atid=937964

git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@499 a1433add-5e2c-0410-b055-b7f2511e0802
postfixadmin-2.3
David Goodwin 16 years ago
parent ac7fb1f6c9
commit e39c133780

@ -66,7 +66,12 @@ if ($_SERVER['REQUEST_METHOD'] == "POST")
} else {
$fMaxquota = 0;
}
if (isset ($_POST['fTransport'])) $fTransport = escape_string ($_POST['fTransport']);
$fTransport = $CONF['transport_default'];
if($CONF['transport'] != 'NO' && isset ($_POST['fTransport'])) {
$fTransport = escape_string ($_POST['fTransport']);
}
if (isset ($_POST['fBackupmx'])) $fBackupmx = escape_string ($_POST['fBackupmx']);
if (isset ($_POST['fActive'])) $fActive = escape_string ($_POST['fActive']);

Loading…
Cancel
Save