carlos22 / carddav2fb

:notebook: A command-line PHP script allowing to import CardDAV-based VCards (e.g. from 'owncloud') to a phonebook in a AVM FRITZ!Box
The Unlicense
86 stars 67 forks source link

Support for formatted name and nickname when name isn't defined #10

Closed Fensterbank closed 8 years ago

Fensterbank commented 8 years ago

When the name is not set in the vcard, the formatted name is used. If this is missing too, nickname is used. Finally we use organization as before.

Also fixes a bug by resetting the variables, otherwise previously used fallback values will be reused for other contacts while iterating the array.

Fixes #9