From b8f24d0104bd29e5c3e8f2a85d5b4da8c6dc45b4 Mon Sep 17 00:00:00 2001 From: git Date: Thu, 19 Jun 2025 14:04:55 +0100 Subject: [PATCH] fixed bug --- plt/handleTriggerExecutionResult.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plt/handleTriggerExecutionResult.inc.php b/plt/handleTriggerExecutionResult.inc.php index b1bd37f..0ea3917 100644 --- a/plt/handleTriggerExecutionResult.inc.php +++ b/plt/handleTriggerExecutionResult.inc.php @@ -19,7 +19,7 @@ function handleTriggerExecutionResult($result, $stdout, $stderr, $originalRow, $ $newRowValue = json_decode($stdout, true); // Ignore the hydrate columns - $newRowValue = array_filter($newRowValue, fn($k) => !str_ends_with($k, '_ref'), ARRAY_FILTER_USE_KEY); + $newRowValue = array_filter($newRowValue ?? [], fn($k) => !str_ends_with($k, '_ref'), ARRAY_FILTER_USE_KEY); if ($newRowValue === null) { updateTriggerError($tableName, 'Invalid JSON output from sandboxed execution.');