Fixes for import of homeurl

This commit is contained in:
Miles Lott 2001-03-12 02:05:20 +00:00
parent 429ab044c1
commit 81ad9bdf63

View File

@ -93,7 +93,7 @@
}
} else {
while ($data = fgets($fp,8000)) {
list($name,$value) = split(':', $data);
list($name,$value,$url) = split(':', $data);
if (substr($name,0,2) == 'dn') {
$buffer = $o->import_start_record($buffer);
}
@ -103,6 +103,10 @@
$name = "mail";
$value = $test[1];
}
if ($url) {
$name = "homeurl";
$value = $value . ':' . $url;
}
//echo '<br>'.$j.': '.$name.' => '.$value;
if ($o->import[$name] != "" && $value != "") {
$buffer = $o->import_new_attrib($buffer, $o->import[$name],$value);