implode the output from zmu to fix php complaint abou array to string conversion

pull/3636/head
Isaac Connor 2022-11-16 16:16:27 -05:00
parent e52a77f206
commit 0515a1ba74
1 changed files with 1 additions and 1 deletions

View File

@ -295,7 +295,7 @@ class MonitorsController extends AppController {
$shellcmd = escapeshellcmd(ZM_PATH_BIN."/zmu $verbose -m$id $q $auth"); $shellcmd = escapeshellcmd(ZM_PATH_BIN."/zmu $verbose -m$id $q $auth");
$status = exec($shellcmd, $output, $rc); $status = exec($shellcmd, $output, $rc);
ZM\Debug("Command: $shellcmd output: $output rc: $rc"); ZM\Debug("Command: $shellcmd output: ".implode(PHP_EOL, $output)." rc: $rc");
if ($rc) { if ($rc) {
$this->set(array( $this->set(array(
'status'=>'false', 'status'=>'false',