1
1
Fork 0

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

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