API: Bugfix that wrong contact data was sent

This commit is contained in:
Michael Vogel 2014-01-05 16:57:05 +01:00
parent 8eedebfee3
commit 3b32505d14

View File

@ -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";