X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FUtil%2FJsonLD.php;h=f91d84ad5c13cd5e98a39b97db2835baa3ac176f;hb=51ebb1541a62c0fd691d995326d61775cc7d61d3;hp=fa169c00468c7c3c0d55b5e3b1b365159b65f5a5;hpb=87db6dc48928d5ab7e3b5f901bc608aef008278e;p=friendica.git diff --git a/src/Util/JsonLD.php b/src/Util/JsonLD.php index fa169c0046..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_int(key($array[$element]))) { + if (!is_array($array[$element]) || !is_int(key($array[$element]))) { $array[$element] = [$array[$element]]; }