}
// Check if $contact has been successfully loaded
- if (is_array($contact)) {
+ if (DBA::isResult($contact)) {
if (strlen($inform) && (isset($contact["notify"]) || isset($contact["id"]))) {
$inform .= ',';
}
$profile = $contact["url"];
$alias = $contact["alias"];
$newname = $contact["nick"];
+
if (($newname == "") || (($contact["network"] != NETWORK_OSTATUS) && ($contact["network"] != NETWORK_TWITTER)
&& ($contact["network"] != NETWORK_STATUSNET) && ($contact["network"] != NETWORK_APPNET))) {
$newname = $contact["name"];