Fixed bug
This commit is contained in:
parent
fe31a72a96
commit
a5457171da
@ -46,11 +46,11 @@ $onUpdate_phpCode
|
||||
\$initial_data = json_encode(\$data);
|
||||
|
||||
// Execute the dynamically generated function
|
||||
$error = "";
|
||||
$retVal = $functionName(\$data, \$error);
|
||||
\$error = "";
|
||||
\$retVal = $functionName(\$data, \$error);
|
||||
|
||||
// Handle errors
|
||||
if ($retVal === false || !empty($error)) {
|
||||
if (\$retVal === false || !empty(\$error)) {
|
||||
file_put_contents('php://stderr', "Error: $error\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user