From 21cdcd4d4db29ab312e22538d82bb47780903aa2 Mon Sep 17 00:00:00 2001 From: twoldanski <66474451+twoldanski@users.noreply.github.com> Date: Mon, 20 May 2024 12:56:34 +0200 Subject: [PATCH] [BUGFIX] Fix warning if `as` is not set (#729) --- Classes/DataProcessing/DataProcessingTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/DataProcessing/DataProcessingTrait.php b/Classes/DataProcessing/DataProcessingTrait.php index 4dbf7db9..7cef5cd2 100644 --- a/Classes/DataProcessing/DataProcessingTrait.php +++ b/Classes/DataProcessing/DataProcessingTrait.php @@ -23,7 +23,7 @@ protected function removeDataIfnotAppendInConfiguration(array $processorConfigur if (!isset($processorConfiguration['appendData']) || (int)$processorConfiguration['appendData'] === 0) { unset($processedData['data']); - if (isset($processedData[$processorConfiguration['as']]) + if (isset($processorConfiguration['as'], $processedData[$processorConfiguration['as']]) && is_array($processedData[$processorConfiguration['as']])) { foreach ($processedData[$processorConfiguration['as']] as &$item) { if (isset($item['data'])) {