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 = '';
|
$dir_icon = '';
|
||||||
$alt_text = '';
|
$alt_text = '';
|
||||||
|
|
||||||
if ($rr['uid']) {
|
if (!empty($rr['uid']) && !empty($rr['rel'])) {
|
||||||
switch ($rr['rel']) {
|
switch ($rr['rel']) {
|
||||||
case Model\Contact::FRIEND:
|
case Model\Contact::FRIEND:
|
||||||
$dir_icon = 'images/lrarrow.gif';
|
$dir_icon = 'images/lrarrow.gif';
|
||||||
|
|
Loading…
Reference in a new issue