"fixed bug reported on the users list by e.rawpuorge@pfr.de: KAddressbook labels the work and home address wrong: we are no longer using the adr_(one|two)_type fields from addressbook, but KAddressbook expects them, they are now send with constant values 'Work' and 'Home'"

This commit is contained in:
Ralf Becker 2007-06-03 08:20:51 +00:00
parent b6774051f1
commit 65b18f32a5

View File

@ -166,6 +166,8 @@ class boaddressbook
'jpegphoto' => false, // gives errors in KAddressbook, maybe the encoding is wrong
'photo' => false, // is uncomplete anyway
'private' => 'access', // special handling necessary
'adr_one_type' => "'Work'", // defines how KAddresbook labels the address
'adr_two_type' => "'Home'",
);
break;
@ -249,7 +251,11 @@ class boaddressbook
break;
default:
if(isset($data[$from]))
if ($to{0} == "'") // constant value enclosed in single quotes
{
$data[$from] = substr($to,1,-1);
}
elseif(isset($data[$from]))
{
if ($to) $data[$to] =& $data[$from];
unset($data[$from]);