diff --git a/lam/templates/ou_edit.php b/lam/templates/ou_edit.php index 5f4bed70..19272e86 100644 --- a/lam/templates/ou_edit.php +++ b/lam/templates/ou_edit.php @@ -48,7 +48,7 @@ setlanguage(); $types = $_SESSION['config']->get_ActiveTypes(); // check if submit button was pressed -if ($_POST['submit']) { +if (isset($_POST['submit'])) { // check user input for ($i = 0; $i < sizeof($types); $i++) { // new ou @@ -167,7 +167,7 @@ function display_main() { echo ("\n"); echo ("" . _("New organizational unit") . ":\n"); echo (" \n"); - echo (""); for ($u = 0; $u < sizeof($units); $u++) { echo ("\n"); } @@ -182,7 +182,7 @@ function display_main() { echo ("\n"); echo ("" . _("Delete organizational unit") . ":\n"); echo (" \n"); - echo (""); for ($u = 0; $u < sizeof($units); $u++) { echo ("\n"); } diff --git a/lam/templates/profedit/profilemain.php b/lam/templates/profedit/profilemain.php index d4368bc5..0c74a257 100644 --- a/lam/templates/profedit/profilemain.php +++ b/lam/templates/profedit/profilemain.php @@ -137,7 +137,7 @@ for ($i = 0; $i < sizeof($profileClasses); $i++) { echo "\n"; echo "\n"; echo "\n"; - echo "\n"; echo $profileClasses[$i]['profiles']; echo "\n"; echo "\n"; @@ -150,7 +150,7 @@ for ($i = 0; $i < sizeof($profileClasses); $i++) { echo "\n"; echo "\n"; echo "\n"; - echo "\n"; echo $profileClasses[$i]['profiles']; echo "\n"; echo "\n";