diff --git a/lam/templates/account/edit.php b/lam/templates/account/edit.php index 4a2f0abc..4316b486 100644 --- a/lam/templates/account/edit.php +++ b/lam/templates/account/edit.php @@ -55,7 +55,7 @@ if (!isset($_SESSION['loggedIn'])) { setlanguage(); //load account -if ($_GET['DN']) { +if (isset($_GET['DN'])) { $DN = str_replace("\'", '', $_GET['DN']); $type = str_replace("\'", '', $_GET['type']); if ($_GET['type'] == $type) $type = str_replace("'", '',$_GET['type']); diff --git a/lam/templates/login.php b/lam/templates/login.php index 499b98fb..c5dc9a9b 100644 --- a/lam/templates/login.php +++ b/lam/templates/login.php @@ -286,7 +286,7 @@ function display_LoginPage($config_object) { file; } ?> @@ -330,7 +330,7 @@ function display_LoginPage($config_object) { } // checking if the submitted username/password is correct. -if($_POST['checklogin']) +if(!empty($_POST['checklogin'])) { $_SESSION['lampath'] = realpath('../') . "/"; // Save full path to lam in session @@ -389,7 +389,7 @@ if($_POST['checklogin']) } } // Reload loginpage after a profile change -elseif($_POST['profileChange']) { +elseif(!empty($_POST['profileChange'])) { $_SESSION['config'] = new Config($_POST['profile']); // Recreate the config object with the submited display_LoginPage($_SESSION['config']); // Load login page }