fix errors in upgrade/ldap_import.php