We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 072d429 commit 2c65001Copy full SHA for 2c65001
web/api/index.php
@@ -41,10 +41,14 @@
41
42
// Run query
43
exec (VESTA_CMD.$cmd." ".$arg1." ".$arg2." ".$arg3." ".$arg4." ".$arg5." ".$arg6." ".$arg7." ".$arg8." ".$arg9, $output, $return_var);
44
- if (($return_var == 0) && (empty($output))) {
45
- echo 'OK';
+ if ((!empty($_POST['returncode'])) && ($_POST['returncode'] == 'yes')) {
+ echo $return_var;
46
} else {
47
- echo implode("\n",$output);
+ if (($return_var == 0) && (empty($output))) {
48
+ echo "OK";
49
+ } else {
50
+ echo implode("\n",$output)."\n";
51
+ }
52
}
53
54
0 commit comments