if($cid == 0 && $zcid == 0)
- return;
+ return;
if($cid)
foreach($r as $rr) {
+ //get further details of the contact
+ $contact_details = get_contact_details_by_url($rr['url'], $uid);
+
// $rr[id] is needed to use contact_photo_menu()
$rr[id] = $rr[cid];
$photo_menu = '';
$photo_menu = contact_photo_menu ($rr);
- //get further details of the contact
- $contact_details = get_contact_details_by_url($rr['url'], $uid);
-
$entry = array(
'url' => $rr['url'],
- 'itemurl' => $rr['url'],
+ 'itemurl' => (($contact_details['addr'] != "") ? $contact_details['addr'] : $rr['url']),
'name' => $rr['name'],
'thumb' => proxy_url($rr['photo'], false, PROXY_SIZE_THUMB),
'img_hover' => htmlentities($rr['name']),