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.
|
||||
$hub = '';
|
||||
|
||||
OStatus::import($data, $importer, $contact ?: [], $hub);
|
||||
$contact = $contact ?: [];
|
||||
|
||||
OStatus::import($data, $importer, $contact, $hub);
|
||||
|
||||
throw new \Friendica\Network\HTTPException\OKException();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue