Code

Updated error msg for ldap_import
[gosa.git] / html / main.php
index e43f2aaeb104149ffc1c5b3d6bc85e9e71146f32..3e1363f1a42bbc0f170eae3e8c8bcab118b6f2f4 100644 (file)
@@ -135,6 +135,11 @@ if ($config->data['MAIN']['LANG'] == ""){
   $lang= $config->data['MAIN']['LANG'];
 }
 
+/* Preset current main base */
+if(!isset($_SESSION['CurrentMainBase'])){
+  $_SESSION['CurrentMainBase']= get_base_from_people($ui->dn);
+}
+
 $lang.=".UTF-8";
 putenv("LANGUAGE=");
 putenv("LANG=$lang");