]> git.mxchange.org Git - friendica.git/commitdiff
Issue 5859: Avoid returning empty arrays
authorMichael <heluecht@pirati.ca>
Wed, 10 Oct 2018 19:15:16 +0000 (19:15 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 10 Oct 2018 19:15:16 +0000 (19:15 +0000)
src/Util/JsonLD.php

index a581892939c2fce4f0724c1769c8bda7ff05b134..cf23276d7529a8c8e3be0f98162e72bcde9d3733 100644 (file)
@@ -128,7 +128,7 @@ class JsonLD
                                $elements[] = $entry;
                        } elseif (!empty($entry[$key])) {
                                $elements[] = $entry[$key];
-                       } else {
+                       } elseif (!empty($entry) || !is_array($entry)) {
                                $elements[] = $entry;
                        }
                }