From e2b5b25950314ceec03997cd6a3ab9ef98a32e27 Mon Sep 17 00:00:00 2001 From: Jerome Anker Date: Thu, 14 Nov 2024 13:39:11 +0100 Subject: [PATCH] array_key_exists only if is_array --- src/Kunstmaan/AdminListBundle/Service/ExportService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Kunstmaan/AdminListBundle/Service/ExportService.php b/src/Kunstmaan/AdminListBundle/Service/ExportService.php index eb8e865363..02770f78c1 100644 --- a/src/Kunstmaan/AdminListBundle/Service/ExportService.php +++ b/src/Kunstmaan/AdminListBundle/Service/ExportService.php @@ -78,7 +78,7 @@ protected function streamOutput(ExportableInterface $adminList, $format) $iterator = $adminList->getIterator(); foreach ($iterator as $item) { - if (\array_key_exists(0, $item)) { + if (\is_array($item) && \array_key_exists(0, $item)) { $itemObject = $item[0]; } else { $itemObject = $item;