Browse Source

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

pull/7520/head
Hypolite Petovan 2 years ago
parent
commit
e463df6418
  1. 2
      src/Module/Contact.php

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

Loading…
Cancel
Save