edit.php:

- for not-set bool values, set $values instead of the (wrong) $inp_values


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1760 a1433add-5e2c-0410-b055-b7f2511e0802
pull/2/head
Christian Boltz 9 years ago
parent 56b3f11d35
commit 0bba68e1bc

@ -102,7 +102,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
}
if($field['type'] == 'bool' && $inp_values[$key] == '') {
$inp_values[$key] = 0; # isset() for unchecked checkboxes is always false
$values[$key] = 0; # isset() for unchecked checkboxes is always false
} elseif($field['type'] == 'txtl') {
$values[$key] = $inp_values[$key];
$values[$key] = preg_replace ('/\\\r\\\n/', ',', $values[$key]);

Loading…
Cancel
Save