Summary | Undefined offset: 1 in Driver.php on line 925 |
Queue | Turba |
Queue Version | HEAD |
Type | Bug |
State | Resolved |
Priority | 1. Low |
Owners | selsky (at) columbia (dot) edu |
Requester | jokot3 (at) gmail (dot) com |
Created | 03/28/2007 (6755 days ago) |
Due | |
Updated | 04/05/2007 (6747 days ago) |
Assigned | 03/28/2007 (6755 days ago) |
Resolved | 04/05/2007 (6747 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
State ⇒ Resolved
http://lists.horde.org/archives/cvs/Week-of-Mon-20070326/066479.html
http://lists.horde.org/archives/cvs/Week-of-Mon-20070326/066479.html
submitted patch.
is a multi-valued field, not a single value.
My reading of http://www.imc.org/pdi/vcard-21.txt says that neither
first name nor last name are required in the 'N' field. Any problem
with my updating Driver.php to reflect that?
New Attachment: simple.vcf
New Attachment: liste2.vcf
name, right? So just replace the name with a bogus one...
modified data... I keep trying.
name, right? So just replace the name with a bogus one...
modified data... I keep trying.
State ⇒ Feedback
right? So just replace the name with a bogus one...
Priority ⇒ 1. Low
State ⇒ Unconfirmed
New Attachment: turba_driver_patch
Queue ⇒ Turba
Summary ⇒ Undefined offset: 1 in Driver.php on line 925
Type ⇒ Bug
produce the error :
Notice: Undefined offset: 1 in
/srv/www/horde-cvs/horde/turba/lib/Driver.php on line 925
already mentionned there :
http://lists.horde.org/archives/dev/Week-of-Mon-20051003/018643.html
The guy provides a patch but didn't post a bug ticket, there it is :)
line 925 and around :
case 'N':
$name = $item['values'];
$hash['lastname'] = $name[VCARD_N_FAMILY];
925 --> $hash['firstname'] = $name[VCARD_N_GIVEN];
if (!empty($name[VCARD_N_ADDL])) {
I can't provide the vcard file causing the error, it contains really
personnal data (as any vcard...), but I'm trying to produce one which
cause the same notice, if needed.
Patch attached.
greets.