From b7f85d84e1600dcc935e93bca6c2996eafe14064 Mon Sep 17 00:00:00 2001 From: Benji Fisher <benji@FisherFam.org> Date: Wed, 9 Dec 2020 20:37:16 -0500 Subject: [PATCH] 244: Handle empty array properly --- src/Plugin/migrate/process/Transpose.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Plugin/migrate/process/Transpose.php b/src/Plugin/migrate/process/Transpose.php index 55ddd549..6f88b5ea 100644 --- a/src/Plugin/migrate/process/Transpose.php +++ b/src/Plugin/migrate/process/Transpose.php @@ -36,7 +36,7 @@ class Transpose extends ProcessPluginBase { */ public function transform($table, MigrateExecutableInterface $migrate_executable, Row $row, $destination_property) { // Make sure that $table is an array of arrays. - if (!is_array($table)) { + If (!is_array($table) || $table == []) { return []; } foreach ($table as &$value) { -- GitLab