From: Hypolite Petovan Date: Fri, 16 Aug 2019 11:29:34 +0000 (-0400) Subject: Add existence check for contact.uid and contact.rel fields in Contact::getContactTemp... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e463df6418124f69b370744cf70d6e3b04af2f54;p=friendica.git Add existence check for contact.uid and contact.rel fields in Contact::getContactTemplateVars --- diff --git a/src/Module/Contact.php b/src/Module/Contact.php index 4a127eee41..04156daba9 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';