From e463df6418124f69b370744cf70d6e3b04af2f54 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Fri, 16 Aug 2019 07:29:34 -0400 Subject: [PATCH] Add existence check for contact.uid and contact.rel fields in Contact::getContactTemplateVars --- src/Module/Contact.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Module/Contact.php b/src/Module/Contact.php index 4a127eee4..04156daba 100644 --- a/src/Module/Contact.php +++ b/src/Module/Contact.php @@ -984,7 +984,7 @@ class Contact extends BaseModule $dir_icon = ''; $alt_text = ''; - if ($rr['uid']) { + if (!empty($rr['uid']) && !empty($rr['rel'])) { switch ($rr['rel']) { case Model\Contact::FRIEND: $dir_icon = 'images/lrarrow.gif';