Add existence check for contact.uid and contact.rel fields in Contact::getContactTemplateVars
This commit is contained in:
parent
98b0f97639
commit
e463df6418
|
@ -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…
Reference in New Issue
Block a user