From: Michael Date: Wed, 23 Jan 2019 22:04:14 +0000 (+0000) Subject: Parameters redone X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7e31cebb67a13479590188efa5383ec72181fe2e;p=friendica.git Parameters redone --- diff --git a/src/Protocol/OStatus.php b/src/Protocol/OStatus.php index 051c0d6c8c..45071f82e2 100644 --- a/src/Protocol/OStatus.php +++ b/src/Protocol/OStatus.php @@ -53,7 +53,7 @@ class OStatus * @throws \Friendica\Network\HTTPException\InternalServerErrorException * @throws \ImagickException */ - private static function fetchAuthor(DOMXPath $xpath, $context, array $importer, &$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); @@ -322,7 +322,7 @@ class OStatus * @throws \Friendica\Network\HTTPException\InternalServerErrorException * @throws \ImagickException */ - private static function process($xml, array $importer, &$contact, &$hub, $stored = false, $initialize = true) + private static function process($xml, array $importer, array &$contact = null, &$hub, $stored = false, $initialize = true) { if ($initialize) { self::$itemlist = [];