From 7e51edf39dd99e7df7d53c2c8640937c8e4c2244 Mon Sep 17 00:00:00 2001 From: nathangray Date: Wed, 24 Apr 2019 14:28:40 -0600 Subject: [PATCH] Etemplate - contact widget: Fix sometimes missing n_fn --- api/src/Etemplate/Widget/Contact.php | 5 +++++ 1 file changed, 5 insertions(+) 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; }