This commit is contained in:
myvesta 2023-03-26 15:01:52 +02:00 committed by GitHub
commit 3192243fb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 32 additions and 32 deletions

View file

@ -10,25 +10,25 @@ if ($counter<2) myvesta_throw_error(2, 'Function is missing');
$func=$argv[1];
if (!function_exists($func)) {
$func="myvesta_".$argv[1];
if (!function_exists($func)) myvesta_throw_error(2, 'Function does not exists');
$func="myvesta_".$argv[1];
if (!function_exists($func)) myvesta_throw_error(2, 'Function does not exists');
}
$params=array();
for ($i=2; $i<$counter; $i++) {
$argv[$i]=myvesta_fix_backslashes($argv[$i]);
$params[]=$argv[$i];
$argv[$i]=myvesta_fix_backslashes($argv[$i]);
$params[]=$argv[$i];
}
$r=call_user_func_array($func, $params);
if (is_bool($r)) {
if ($r) {
exit(0);
} else {
exit(MYVESTA_ERROR_GENERAL);
}
if ($r) {
exit(0);
} else {
exit(MYVESTA_ERROR_GENERAL);
}
} else {
echo $r;
exit(0);
echo $r;
exit(0);
}