From: Michael Vogel Date: Sun, 5 Jan 2014 15:57:05 +0000 (+0100) Subject: API: Bugfix that wrong contact data was sent X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3b32505d141ac35164c84249be5aea6e4467a1bd;p=friendica.git API: Bugfix that wrong contact data was sent --- diff --git a/include/api.php b/include/api.php index 9c3bb15244..f234bd20dc 100644 --- a/include/api.php +++ b/include/api.php @@ -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";