Fixed bug
This commit is contained in:
parent
fe31a72a96
commit
a5457171da
@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user