From 72676b0af94197355decf1cc760f73aa8366458e Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Fri, 23 Jan 2009 21:37:02 +0000 Subject: [PATCH] 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 --- create-domain.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/create-domain.php b/create-domain.php index 97beacf1..17a9d9b0 100644 --- a/create-domain.php +++ b/create-domain.php @@ -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 {