You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm testing this script with the newest owncloud / nextcloud release and noticed it doesn't work for me.
PHP Notice: Undefined offset: 0 in /home/fileshare/carddav2fb/carddav2fb.php on line 181
PHP Notice: Undefined offset: 0 in /home/fileshare/carddav2fb/carddav2fb.php on line 186
The undefined offset occurs because there is no real name in the vcard, only the FN (friendly name) is set, which is not used from the script.
The result is that we don't have a name and entries are imported like with a null value
For me I would be fixed by using $vcard_obj->fn[0] instead of $vcard_obj->n[0].
I'm ready to test it and bring up a pull request, but I'm not sure, if this is really broken or it's a special case.
Did you have the N-Property in you vcard files?
Which owncloud version did you used?
I tested it in a brand new nextcloud installation with brand new contacts created inside of the contacts app.
The text was updated successfully, but these errors were encountered:
I'm testing this script with the newest owncloud / nextcloud release and noticed it doesn't work for me.
The undefined offset occurs because there is no real name in the vcard, only the FN (friendly name) is set, which is not used from the script.
The result is that we don't have a name and entries are imported like with a null value
For me I would be fixed by using
$vcard_obj->fn[0]
instead of$vcard_obj->n[0]
.I'm ready to test it and bring up a pull request, but I'm not sure, if this is really broken or it's a special case.
Did you have the N-Property in you vcard files?
Which owncloud version did you used?
I tested it in a brand new nextcloud installation with brand new contacts created inside of the contacts app.
The text was updated successfully, but these errors were encountered: