Code

Invalid repository settings fixed.
[gosa.git] / plugins / addons / ldapmanager / class_csvimport.inc
index 8e81078b1a0c01833c25b00adcf2be5aca3f5726..edc2ecb027568a819f0f1d01ac889c3e877cd2f1 100644 (file)
@@ -294,6 +294,9 @@ class csvimport extends plugin
     } 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."));
@@ -319,6 +322,7 @@ class csvimport extends plugin
         {
           $smarty->assign("fileup",TRUE);
           $str = "";
+                       
 
           /* Reading content */
           while(!feof($handle)) {