X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FUtil%2FJsonLD.php;h=866fc2cdf54d532142039db2214ba55b3d8187f0;hb=71cf72cc8bde161471b2294c675fb0500dd48399;hp=e06d3b9e2934bcffcd64ca4a043ac5b2d39554ce;hpb=e6ab4d9be924861ba9ac82eaf98d559aa6fa7cb7;p=friendica.git diff --git a/src/Util/JsonLD.php b/src/Util/JsonLD.php index e06d3b9e29..866fc2cdf5 100644 --- a/src/Util/JsonLD.php +++ b/src/Util/JsonLD.php @@ -1,6 +1,6 @@ $e->getLine(), 'message' => $e->getMessage()]); + Logger::notice('compacting error', ['line' => $e->getLine(), 'exception' => $e]); } $json = json_decode(json_encode($compacted, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE), true); @@ -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]]; }