From: Michael Vogel Date: Thu, 12 Aug 2021 13:12:41 +0000 (+0200) Subject: Are the tests happy? X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f7f79a240a86268a93b6f7a56532ce17aa6637f8;p=friendica.git Are the tests happy? --- 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]]; }