From 900af760ff68c5b35c8cb2192a8444c793ac64d5 Mon Sep 17 00:00:00 2001 From: Remi Date: Thu, 14 Jul 2016 21:13:25 +0200 Subject: [PATCH] bug fix: typo in do_actions.php (return_var returned when return_val expected) fixes #109 --- src/do_actions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/do_actions.php b/src/do_actions.php index e9fe7d0f..908487eb 100644 --- a/src/do_actions.php +++ b/src/do_actions.php @@ -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