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; } }