From c4da138eee992d0380b8b1791e641116d86c3f8b Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 10 Oct 2018 19:15:16 +0000 Subject: [PATCH] Issue 5859: Avoid returning empty arrays --- src/Util/JsonLD.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Util/JsonLD.php b/src/Util/JsonLD.php index a58189293..cf23276d7 100644 --- a/src/Util/JsonLD.php +++ b/src/Util/JsonLD.php @@ -128,7 +128,7 @@ class JsonLD $elements[] = $entry; } elseif (!empty($entry[$key])) { $elements[] = $entry[$key]; - } else { + } elseif (!empty($entry) || !is_array($entry)) { $elements[] = $entry; } }