[Tickets #7802] email vs. emails

bugs at horde.org bugs at horde.org
Tue Dec 23 13:20:13 UTC 2008


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/7802
------------------------------------------------------------------------------
  Ticket             | 7802
  Created By         | m.gabriel at das-netzwerkteam.de
  Summary            | email vs. emails
  Queue              | Kolab
  Type               | Bug
  State              | Unconfirmed
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


m.gabriel at das-netzwerkteam.de (2008-12-23 08:20) wrote:

try the following:

1. create a contact with one email address in a personal folder
2. copy the contact to a shared contact folder
3. a php error should occur:

Notice: Array to string conversion in  
/usr/local/share/_horde-versions_/horde4-cvs+git-20081223/horde/turba/lib/Driver.php on line  
442

Notice: Array to string conversion in  
/usr/local/share/_horde-versions_/horde4-cvs+git-20081223/horde/turba/lib/Driver.php on line  
443

here is some debug output ($entry):
array(17) { ["uid"]=>  string(32) "84bd16bca84bb10662d6b130345acbd3"  
["body"]=>  string(0) "" ["categories"]=>  string(0) ""  
["creation-date"]=>  int(1230037930) ["last-modification-date"]=>   
int(1230037930) ["sensitivity"]=>  string(6) "public" ["product-id"]=>  
  string(12) "Horde::Kolab" ["given-name"]=>  string(6) "Firstname"  
["last-name"]=>  string(7) "Lastname" ["full-name"]=>  string(14)  
"Firstname Lastname" ["birthday"]=>  string(10) "1973-01-01"  
["email"]=>  array(1) { [0]=>  array(3) { ["display-name"]=>   
string(14) "Firstname Lastname" ["smtp-address"]=>  string(17)  
"flastnamel at horde.tld" ["uid"]=>  string(0) "" } } ["emails"]=>   
string(17) "flastname at hord.tld" ["__type"]=>  string(6) "Object" }


and $val that raises the error
Fields:
string(5) "email"

afterwards the contact object has two mailadresses:  
flastname at horde.tld AND an email address named ,,Array''...

to my point of view $email should be dealt with as somehow invisible  
(as suggested in the latest sources.php of turba).

i am wondering why this issue only occurs with shared contact folders  
but not with personal contact folders...








More information about the bugs mailing list