Fix another Fatal error in Protocol\OStatus (#5451)

* Fix Fatal error in Protocol\OStatus

* Fix another Fatal error in Protocol\OStatus
This commit is contained in:
Hypolite Petovan 2018-07-22 12:57:33 -04:00 committed by GitHub
parent 7d47152564
commit d6ccba79e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ class OStatus
*
* @return array Array of author related entries for the item
*/
private static function fetchAuthor(DOMXPath $xpath, $context, array $importer, array &$contact, $onlyfetch)
private static function fetchAuthor(DOMXPath $xpath, $context, array $importer, array &$contact = null, $onlyfetch)
{
$author = [];
$author["author-link"] = XML::getFirstNodeValue($xpath, 'atom:author/atom:uri/text()', $context);