From a026c9977d60310254caa0909650a0eaf664f2c7 Mon Sep 17 00:00:00 2001 From: katagia Date: Fri, 12 Sep 2003 12:41:56 +0000 Subject: [PATCH] changed start condition --- lam/templates/account/groupedit.php | 6 +++++- lam/templates/account/hostedit.php | 5 +++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/lam/templates/account/groupedit.php b/lam/templates/account/groupedit.php index 1421d047..5467e3eb 100644 --- a/lam/templates/account/groupedit.php +++ b/lam/templates/account/groupedit.php @@ -54,7 +54,11 @@ if (isset($_GET['DN'])) { if (isset($val)) $_SESSION['account']->$key = $val; } } - +if (count($_POST)==0) { + $_SESSION['account'] = loadGroupProfile('default'); + $_SESSION['account'] ->type = 'group'; + if (isset($_SESSION['account_old'])) unset($_SESSION['account_old']); + } switch ($_POST['select']) { // Select which part of page should be loaded and check values // general = startpage, general account paramters diff --git a/lam/templates/account/hostedit.php b/lam/templates/account/hostedit.php index c63b78bc..aee8ff46 100644 --- a/lam/templates/account/hostedit.php +++ b/lam/templates/account/hostedit.php @@ -49,6 +49,11 @@ if (isset($_GET['DN'])) { if (isset($_SESSION['account_old'])) unset($_SESSION['account_old']); } } +if (count($_POST)==0) { + $_SESSION['account'] = loadHostProfile('default'); + $_SESSION['account'] ->type = 'host'; + if (isset($_SESSION['account_old'])) unset($_SESSION['account_old']); + } switch ($_POST['select']) { // Select which part of page should be loaded and check values