diff --git a/plugins/addons/ldapmanager/class_csvimport.inc b/plugins/addons/ldapmanager/class_csvimport.inc
index a2d4efe2c1191f76d8a9018f5a81a19a78865164..edc2ecb027568a819f0f1d01ac889c3e877cd2f1 100644 (file)
$password = $rand_str;
}
- print_a($this->usertab);
-
/* Insert in the LDAP tree */
if(count($this->usertab->check())) {
show_errors($this->usertab->check());
} 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."));
{
$smarty->assign("fileup",TRUE);
$str = "";
+
/* Reading content */
while(!feof($handle)) {