From 5599a47fc45815cb94d85e100f9f4e7884156eb5 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 6 Nov 2005 10:34:33 +0000 Subject: [PATCH] fixed some PHP notices --- lam/templates/account/edit.php | 2 +- lam/templates/login.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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 }