Browse Source

Fiddling with the unknown contact array values

pull/3319/head
Hypolite Petovan 4 years ago
parent
commit
96b1a00e91
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      include/acl_selectors.php

+ 4
- 4
include/acl_selectors.php View File

@ -635,18 +635,18 @@ function acl_lookup(App $a, $out_type = 'json') {
);
if (dbm::is_result($r)) {
foreach ($r as $row) {
$contact = get_contact_details_by_url($row['author-link'], 0);
$contact = get_contact_details_by_url($row['author-link']);
if (count($contact) > 0) {
$unknown_contacts[] = array(
'type' => 'cu',
'photo' => proxy_url($contact['micro'], false, PROXY_SIZE_MICRO),
'name' => htmlentities($contact['name']),
'id' => intval($contact['id']),
'id' => intval($contact['cid']),
'network' => $contact['network'],
'link' => $contact['url'],
'nick' => $contact['nick'],
'forum' => false
'nick' => $contact['nick'] ? : $contact['addr'],
'forum' => $contact['forum']
);
}
}


Loading…
Cancel
Save