Merge pull request #10856 from MrPetovan/bug/fatal-errors
Move false-coalescing operator outside of the parameter in mod/salmon
This commit is contained in:
commit
d335c5038a
|
@ -176,7 +176,9 @@ function salmon_post(App $a, $xml = '') {
|
||||||
// Placeholder for hub discovery.
|
// Placeholder for hub discovery.
|
||||||
$hub = '';
|
$hub = '';
|
||||||
|
|
||||||
OStatus::import($data, $importer, $contact ?: [], $hub);
|
$contact = $contact ?: [];
|
||||||
|
|
||||||
|
OStatus::import($data, $importer, $contact, $hub);
|
||||||
|
|
||||||
throw new \Friendica\Network\HTTPException\OKException();
|
throw new \Friendica\Network\HTTPException\OKException();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user