Fixed bug

This commit is contained in:
git 2025-11-26 15:12:16 +00:00
parent fe31a72a96
commit a5457171da

View File

@ -46,11 +46,11 @@ $onUpdate_phpCode
\$initial_data = json_encode(\$data); \$initial_data = json_encode(\$data);
// Execute the dynamically generated function // Execute the dynamically generated function
$error = ""; \$error = "";
$retVal = $functionName(\$data, \$error); \$retVal = $functionName(\$data, \$error);
// Handle errors // Handle errors
if ($retVal === false || !empty($error)) { if (\$retVal === false || !empty(\$error)) {
file_put_contents('php://stderr', "Error: $error\n"); file_put_contents('php://stderr', "Error: $error\n");
exit(1); exit(1);
} }