diff --git a/lam/templates/account/groupedit.php b/lam/templates/account/groupedit.php index 5467e3eb..b27a5294 100644 --- a/lam/templates/account/groupedit.php +++ b/lam/templates/account/groupedit.php @@ -54,7 +54,7 @@ if (isset($_GET['DN'])) { if (isset($val)) $_SESSION['account']->$key = $val; } } -if (count($_POST)==0) { +else if (count($_POST)==0) { // Startcondition. groupedit.php was called from outside $_SESSION['account'] = loadGroupProfile('default'); $_SESSION['account'] ->type = 'group'; if (isset($_SESSION['account_old'])) unset($_SESSION['account_old']); diff --git a/lam/templates/account/hostedit.php b/lam/templates/account/hostedit.php index aee8ff46..0bbe8913 100644 --- a/lam/templates/account/hostedit.php +++ b/lam/templates/account/hostedit.php @@ -49,7 +49,7 @@ if (isset($_GET['DN'])) { if (isset($_SESSION['account_old'])) unset($_SESSION['account_old']); } } -if (count($_POST)==0) { +else if (count($_POST)==0) { // Startcondition. groupedit.php was called from outside $_SESSION['account'] = loadHostProfile('default'); $_SESSION['account'] ->type = 'host'; if (isset($_SESSION['account_old'])) unset($_SESSION['account_old']);