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