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