do not use empty as it thinks the string 0 is empty...

git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@542 a1433add-5e2c-0410-b055-b7f2511e0802
postfixadmin-2.3
David Goodwin 17 years ago
parent e91d0a2c33
commit 72676b0af9

@ -53,7 +53,7 @@ $form_fields = array(
);
foreach($form_fields as $key => $default) {
if(isset($_POST[$key]) && (!empty($_POST[$key]))) {
if(isset($_POST[$key]) && (strlen($_POST[$key]) > 0)) {
$$key = escape_string($_POST[$key]);
}
else {

Loading…
Cancel
Save