From a328c4cb4809eaddcbf4bf924a5b39baca96f341 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 19 Sep 2004 08:30:42 +0000 Subject: [PATCH] fixed some debug warnings --- lam/templates/config/conflogin.php | 2 +- lam/templates/config/confmain.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lam/templates/config/conflogin.php b/lam/templates/config/conflogin.php index edc8803d..f3de5317 100644 --- a/lam/templates/config/conflogin.php +++ b/lam/templates/config/conflogin.php @@ -89,7 +89,7 @@ echo $_SESSION['header'];   " . "" . $message . "" . ""); diff --git a/lam/templates/config/confmain.php b/lam/templates/config/confmain.php index d3758b44..c851eb2a 100644 --- a/lam/templates/config/confmain.php +++ b/lam/templates/config/confmain.php @@ -43,7 +43,7 @@ session_save_path("../../sess"); setlanguage(); // check if button was pressed and if we have to save the setting or go back to login -if ($_POST['back'] || $_POST['submitconf'] || $_POST['editmodules']){ +if (isset($_POST['back']) || isset($_POST['submitconf']) || isset($_POST['editmodules'])){ // save settings if ($_POST['submitconf'] || $_POST['editmodules']){ // save HTTP-POST variables in session @@ -87,7 +87,7 @@ if ($_POST['back'] || $_POST['submitconf'] || $_POST['editmodules']){ } // get password if register_globals is off -if ($_POST['passwd']) $passwd = $_POST['passwd']; +if (isset($_POST['passwd'])) $passwd = $_POST['passwd']; if ($_GET["modulesback"] == "true") $passwd = $_SESSION['conf_passwd']; // check if password was entered