Commit f3f6378e authored by Nigel Kukard's avatar Nigel Kukard
Browse files

* Fixed same inherit bug for percentages

parent 761f60ad
......@@ -520,11 +520,11 @@ if ($_POST['frmaction'] == "change") {
# AWL Percentage
if (isset($_POST['greylisting_awlpercentage_m'])) {
if ($_POST['greylisting_awlpercentage_m'] == "1") {
$awlpercentage = null;
$awlpercentage = "NULL";
} else {
$awlpercentage = $_POST['greylisting_awlpercentage'];
$awlpercentage = $db->quote($_POST['greylisting_awlpercentage']);
}
array_push($updates,"AutoWhitelistPercentage = ".$db->quote($awlpercentage));
array_push($updates,"AutoWhitelistPercentage = $awlpercentage");
}
# Autoblacklist
......@@ -561,11 +561,11 @@ if ($_POST['frmaction'] == "change") {
# AWL Percentage
if (isset($_POST['greylisting_ablpercentage_m'])) {
if ($_POST['greylisting_ablpercentage_m'] == "1") {
$ablpercentage = null;
$ablpercentage = "NULL";
} else {
$ablpercentage = $_POST['greylisting_ablpercentage'];
$ablpercentage = $db->quote($_POST['greylisting_ablpercentage']);
}
array_push($updates,"AutoBlacklistPercentage = ".$db->quote($ablpercentage));
array_push($updates,"AutoBlacklistPercentage = $ablpercentage");
}
if (!empty($_POST['greylisting_comment'])) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment