]> git.mxchange.org Git - friendica.git/commitdiff
Fix another Fatal error in Protocol\OStatus (#5451)
authorHypolite Petovan <mrpetovan@eml.cc>
Sun, 22 Jul 2018 16:57:33 +0000 (12:57 -0400)
committerGitHub <noreply@github.com>
Sun, 22 Jul 2018 16:57:33 +0000 (12:57 -0400)
* Fix Fatal error in Protocol\OStatus

* Fix another Fatal error in Protocol\OStatus

src/Protocol/OStatus.php

index c7c609f3b9b462406dd865f4cd1f3a693a48b5dc..67c3070fe25432e16d8dba0853f647c35a15d608 100644 (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);