bug fix: typo in do_actions.php (return_var returned when return_val expected) fixes #109

This commit is contained in:
Remi 2016-07-14 21:13:25 +02:00
parent ade5c51f0f
commit 900af760ff
1 changed files with 2 additions and 2 deletions

View File

@ -101,7 +101,7 @@ function mail_it(){
*
* @param type $command the command
* @param type $parameters of the command (they are going to be protected)
* @return array('output'=>'output of exec', 'return_var'=>'returned integer of exec')
* @return array('output'=>'output of exec', 'return_val'=>'returned integer of exec')
*/
function execute_cmd($command, $parameters=array()) {
$cmd_line = "$command ";
@ -116,7 +116,7 @@ function execute_cmd($command, $parameters=array()) {
}
$cmd_line.= " 2>&1";
exec($cmd_line, $output, $code);
return array('executed' => $cmd_line, 'output'=>$output, 'return_var'=>$code);
return array('executed' => $cmd_line, 'output'=>$output, 'return_val'=>$code);
}
/** Check if a file or folder is in the list of allowed