Add existence check for contact.uid and contact.rel fields in Contact::getContactTemplateVars

This commit is contained in:
Hypolite Petovan 2019-08-16 07:29:34 -04:00
parent 98b0f97639
commit e463df6418
1 changed files with 1 additions and 1 deletions

View File

@ -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';