mirror of
https://github.com/friendica/friendica
synced 2024-11-10 07:42:53 +00:00
Add existence check for contact.uid and contact.rel fields in Contact::getContactTemplateVars
This commit is contained in:
parent
98b0f97639
commit
e463df6418
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue