Stringify output
This commit is contained in:
parent
e91353c42c
commit
282c30fc23
|
@ -52,8 +52,9 @@ if (filter_var($result["url"], FILTER_VALIDATE_URL)) {
|
|||
|
||||
if($result["url"] != "reboot") {
|
||||
$body = '';
|
||||
$result = 0;
|
||||
exec($result["url"], $body, $result);
|
||||
$statuscode = 0;
|
||||
exec($result["url"], $body, $statuscode);
|
||||
$body = implode("\n", $body);
|
||||
} else {
|
||||
$rebootjobs[] = $result['jobID'];
|
||||
touch("cache/reboot.trigger");
|
||||
|
|
|
@ -77,8 +77,9 @@ foreach ($results as $result) {
|
|||
|
||||
if($result["url"] != "reboot") {
|
||||
$body = '';
|
||||
$result = 0;
|
||||
exec($result["url"], $body, $result);
|
||||
$statuscode = 0;
|
||||
exec($result["url"], $body, $statuscode);
|
||||
$body = implode("\n", $body);
|
||||
} else {
|
||||
$rebootjobs[] = $result['jobID'];
|
||||
touch("cache/reboot.trigger");
|
||||
|
|
Loading…
Reference in New Issue