From: Michael Date: Wed, 10 Oct 2018 19:15:16 +0000 (+0000) Subject: Issue 5859: Avoid returning empty arrays X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c4da138eee992d0380b8b1791e641116d86c3f8b;p=friendica.git Issue 5859: Avoid returning empty arrays --- diff --git a/src/Util/JsonLD.php b/src/Util/JsonLD.php index a581892939..cf23276d75 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; } }