diff --git a/api/src/Etemplate/Widget/Contact.php b/api/src/Etemplate/Widget/Contact.php index dabdc9c429..c9e43a32f2 100644 --- a/api/src/Etemplate/Widget/Contact.php +++ b/api/src/Etemplate/Widget/Contact.php @@ -171,6 +171,11 @@ class Contact extends Entry } unset($contact['jpegphoto']); // makes no sense to return binary image + if($contact && !$contact['n_fn']) + { + $this->contacts->fixup_contact($contact); + } + //error_log(__METHOD__."('$value') returning ".array2string($contact)); return $contact; }