mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-27 05:11:41 +02:00
fix for last line of vcard not being a emtpy line
This commit is contained in:
parent
a98fdbaa06
commit
5240128a24
@ -181,6 +181,7 @@
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
$needToCallEndRecord = 0;
|
||||||
while ($data = fgets($fp,8000))
|
while ($data = fgets($fp,8000))
|
||||||
{
|
{
|
||||||
$data = trim($data);
|
$data = trim($data);
|
||||||
@ -200,6 +201,7 @@
|
|||||||
if (strtolower(substr($name,0,5)) == 'begin')
|
if (strtolower(substr($name,0,5)) == 'begin')
|
||||||
{
|
{
|
||||||
$buffer = $contacts->import_start_record($buffer);
|
$buffer = $contacts->import_start_record($buffer);
|
||||||
|
$needToCallEndRecord = 1;
|
||||||
}
|
}
|
||||||
if ($name && $value)
|
if ($name && $value)
|
||||||
{
|
{
|
||||||
@ -215,8 +217,11 @@
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
$buffer = $contacts->import_end_record($buffer);
|
$buffer = $contacts->import_end_record($buffer);
|
||||||
|
$needToCallEndRecord = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if($needToCallEndRecord)
|
||||||
|
$buffer = $contacts->import_end_record($buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
fclose($fp);
|
fclose($fp);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user