diff --git a/src/Util/JsonLD.php b/src/Util/JsonLD.php index e06d3b9e29..f91d84ad5c 100644 --- a/src/Util/JsonLD.php +++ b/src/Util/JsonLD.php @@ -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]]; }