API: Bugfix that wrong contact data was sent
This commit is contained in:
parent
8eedebfee3
commit
3b32505d14
1 changed files with 3 additions and 0 deletions
|
@ -2166,6 +2166,9 @@ function api_cleanup_share($shared) {
|
|||
function api_best_nickname(&$contacts) {
|
||||
$best_contact = array();
|
||||
|
||||
if (count($contact) == 0)
|
||||
return;
|
||||
|
||||
foreach ($contacts AS $contact)
|
||||
if ($contact["network"] == "") {
|
||||
$contact["network"] = "dfrn";
|
||||
|
|
Loading…
Reference in a new issue