Code

Invalid repository settings fixed.
[gosa.git] / plugins / addons / ldapmanager / class_csvimport.inc
index 1c8ff3643c0b25074144ef8b3826e0d1396204c0..edc2ecb027568a819f0f1d01ac889c3e877cd2f1 100644 (file)
@@ -151,7 +151,7 @@ class csvimport extends plugin
 
             /* Output Error */
             
-            print_red (_("Need 'sn','givenName' and 'uid' to create user"));
+            print_red (_("Need 'sn','givenName' and 'uid' to create user."));
           } else {
 
             /* Register usertab to trigger edit dialog */
@@ -194,8 +194,6 @@ class csvimport extends plugin
               $password = $rand_str;
             }
 
-            print_a($this->usertab);
-
             /* Insert in the LDAP tree */
             if(count($this->usertab->check())) {
               show_errors($this->usertab->check());
@@ -289,13 +287,16 @@ class csvimport extends plugin
 
 
         $smarty->assign("tpl",$arrtemplates[$tplid]);
-        print_red (_("Nothing to import !."));
+        print_red (_("Nothing to import!"));
       }
 
       /* If theres a File uploaded */
     } else {
       /* Check if theres a file uploaded */
       if(!empty($_FILES['userfile']['name'])){
+       
+       $handle = NULL;
+       
         if((!isset($_FILES['userfile']['name']))||(!isset($_POST['fileup'])))
         {
           print_red(_("There is no file uploaded."));
@@ -321,6 +322,7 @@ class csvimport extends plugin
         {
           $smarty->assign("fileup",TRUE);
           $str = "";
+                       
 
           /* Reading content */
           while(!feof($handle)) {