]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/DFRN.php
Changes:
[friendica.git] / src / Protocol / DFRN.php
index fc72f7e371e29e39dc2d058be99b4914247de14d..878b1570b4641737764da7edd1ec1f4ff6c5b0ee 100644 (file)
@@ -348,7 +348,7 @@ class DFRN
         * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         * @todo  Find proper type-hint for returned type
         */
-       private static function addHeader(DOMDocument $doc, array $owner, string $authorelement, string $alternatelink = "", bool $public = false)
+       private static function addHeader(DOMDocument $doc, array $owner, string $authorelement, string $alternatelink = '', bool $public = false)
        {
 
                if ($alternatelink == "") {
@@ -1063,7 +1063,7 @@ class DFRN
         * @throws \ImagickException
         * @todo  Find good type-hints for all parameter
         */
-       private static function fetchauthor(\DOMXPath $xpath, \DOMNode $context, array $importer, string $element, bool $onlyfetch, string $xml = ""): array
+       private static function fetchauthor(\DOMXPath $xpath, \DOMNode $context, array $importer, string $element, bool $onlyfetch, string $xml = ''): array
        {
                $author = [];
                $author["name"] = XML::getFirstNodeValue($xpath, $element."/atom:name/text()", $context);
@@ -2074,6 +2074,9 @@ class DFRN
                        }
                }
 
+               // Need to initialize variable, otherwise E_NOTICE will happen
+               $is_like = false;
+
                if (!self::processVerbs($entrytype, $importer, $item, $is_like)) {
                        Logger::info("Exiting because 'processVerbs' told us so");
                        return;