]> git.mxchange.org Git - friendica.git/commitdiff
Fix fatal error because of parameter type mismatch
authorMichael <heluecht@pirati.ca>
Mon, 3 May 2021 18:43:38 +0000 (18:43 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 3 May 2021 18:43:38 +0000 (18:43 +0000)
src/Util/ParseUrl.php

index 77611168d4fed8c2d7708762787d6238b0029c59..5dee4d3a29b804f7b8960d71a0518535242a8a09 100644 (file)
@@ -711,7 +711,7 @@ class ParseUrl
                        }
                        if ($numeric_keys) {
                                foreach ($jsonld as $part) {
-                                       if (!empty($part)) {
+                                       if (!empty($part) && is_array($part)) {
                                                $siteinfo = self::parseParts($siteinfo, $part);
                                        }
                                }