]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/ParseUrl.php
Tests
[friendica.git] / src / Util / ParseUrl.php
index 77611168d4fed8c2d7708762787d6238b0029c59..d5c9f02ad4a4eaf22f1879c4323a698054fc3e63 100644 (file)
@@ -695,7 +695,7 @@ class ParseUrl
        {
                if (!empty($jsonld['@graph']) && is_array($jsonld['@graph'])) {
                        foreach ($jsonld['@graph'] as $part) {
-                               if (!empty($part)) {
+                               if (!empty($part) && is_array($part)) {
                                        $siteinfo = self::parseParts($siteinfo, $part);
                                }
                        }
@@ -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);
                                        }
                                }