Fix default value of contact parameter of OStatus::import in mod/salmon
This commit is contained in:
parent
5d4bafb116
commit
0cc1a07cfa
|
@ -184,7 +184,7 @@ function salmon_post(App $a, $xml = '') {
|
|||
// Placeholder for hub discovery.
|
||||
$hub = '';
|
||||
|
||||
$contact_rec = ((DBA::isResult($r)) ? $r[0] : null);
|
||||
$contact_rec = ((DBA::isResult($r)) ? $r[0] : []);
|
||||
|
||||
OStatus::import($data, $importer, $contact_rec, $hub);
|
||||
|
||||
|
|
|
@ -74,7 +74,7 @@ class OStatus
|
|||
|
||||
$author["contact-id"] = $contact["id"];
|
||||
|
||||
$contact = null;
|
||||
$contact = [];
|
||||
|
||||
/*
|
||||
This here would be better, but we would get problems with contacts from the statusnet addon
|
||||
|
@ -231,7 +231,7 @@ class OStatus
|
|||
|
||||
GContact::link($gcid, $contact["uid"], $contact["id"]);
|
||||
} elseif ($contact["network"] != Protocol::DFRN) {
|
||||
$contact = null;
|
||||
$contact = [];
|
||||
}
|
||||
|
||||
return $author;
|
||||
|
|
Loading…
Reference in a new issue