]> git.mxchange.org Git - friendica.git/commitdiff
Are the tests happy?
authorMichael Vogel <icarus@dabo.de>
Thu, 12 Aug 2021 13:12:41 +0000 (15:12 +0200)
committerMichael Vogel <icarus@dabo.de>
Thu, 12 Aug 2021 13:12:41 +0000 (15:12 +0200)
src/Util/JsonLD.php

index e06d3b9e2934bcffcd64ca4a043ac5b2d39554ce..f91d84ad5c13cd5e98a39b97db2835baa3ac176f 100644 (file)
@@ -193,7 +193,7 @@ class JsonLD
                }
 
                // If it isn't an array yet, make it to one
-               if (!is_array($array[$element])) {
+               if (!is_array($array[$element]) || !is_int(key($array[$element]))) {
                        $array[$element] = [$array[$element]];
                }