]> git.mxchange.org Git - friendica.git/commitdiff
Fixes "PHP Warning: key() expects parameter 1 to be array, string given"
authorMichael Vogel <icarus@dabo.de>
Thu, 12 Aug 2021 12:00:54 +0000 (14:00 +0200)
committerMichael Vogel <icarus@dabo.de>
Thu, 12 Aug 2021 12:00:54 +0000 (14:00 +0200)
src/Util/JsonLD.php

index fa169c00468c7c3c0d55b5e3b1b365159b65f5a5..e06d3b9e2934bcffcd64ca4a043ac5b2d39554ce 100644 (file)
@@ -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]];
                }