diff --git a/services/ExportService.php b/services/ExportService.php index 064dc5a..fc0304b 100644 --- a/services/ExportService.php +++ b/services/ExportService.php @@ -478,6 +478,13 @@ public function parseFieldData($handle, $data) // If it's an object or an array, make it a string if (is_array($data)) { + + $data = array_filter($data, function($element) { + if (!is_object($element)) { + return $element; + } + }); + $data = StringHelper::arrayToString(ArrayHelper::filterEmptyStringsFromArray(ArrayHelper::flattenArray($data)), ', '); }