From da8dd4f2737d69c1c47a336a0210a14c70e6c91c Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Fri, 17 Aug 2007 15:12:05 +0000 Subject: [PATCH] admin/create-admin.php: ensure array is initialised git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@22 a1433add-5e2c-0410-b055-b7f2511e0802 --- admin/create-admin.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/admin/create-admin.php b/admin/create-admin.php index 6b7178e8..8aa73cd5 100644 --- a/admin/create-admin.php +++ b/admin/create-admin.php @@ -32,6 +32,7 @@ $SESSID_USERNAME = check_session (); (!check_admin($SESSID_USERNAME) ? header("Location: " . $CONF['postfix_admin_url'] . "/main.php") && exit : '1'); $list_domains = list_domains (); +$tDomains = array(); if ($_SERVER['REQUEST_METHOD'] == "GET") { @@ -49,6 +50,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") if (isset ($_POST['fUsername'])) $fUsername = escape_string ($_POST['fUsername']); if (isset ($_POST['fPassword'])) $fPassword = escape_string ($_POST['fPassword']); if (isset ($_POST['fPassword2'])) $fPassword2 = escape_string ($_POST['fPassword2']); + $fDomains = array(); if (!empty ($_POST['fDomains'])) $fDomains = $_POST['fDomains']; if (!check_email ($fUsername))