From 81ad9bdf63a29e438efa94b16c7171bf88ea937c Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Mon, 12 Mar 2001 02:05:20 +0000 Subject: [PATCH] Fixes for import of homeurl --- addressbook/import.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/addressbook/import.php b/addressbook/import.php index 4fa1524961..bbffb831f3 100644 --- a/addressbook/import.php +++ b/addressbook/import.php @@ -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 '
'.$j.': '.$name.' => '.$value; if ($o->import[$name] != "" && $value != "") { $buffer = $o->import_new_attrib($buffer, $o->import[$name],$value);