diff --git a/src/Util/JsonLD.php b/src/Util/JsonLD.php index fa169c0046..e06d3b9e29 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_int(key($array[$element]))) { + if (!is_array($array[$element])) { $array[$element] = [$array[$element]]; }