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
A VCard can have no EMAIL property, but it may also have multiple EMAIL properties. Your code should be able to deal with these situations, it currently assumes that each card as one EMAIL property (only).
Something like:
if (isset($vcard->EMAIL)) {
foreach($vcard->EMAILas$email) {
echo "Email: $email\n";
}
}
Good morning,
me again (shame on me).
I check with this code if a contact has a specific mail address:
Problem:
If a contact has no mail address I get this error:
How can I handle this?
The text was updated successfully, but these errors were encountered: