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 (" |