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") {
|
if($result["url"] != "reboot") {
|
||||||
$body = '';
|
$body = '';
|
||||||
$result = 0;
|
$statuscode = 0;
|
||||||
exec($result["url"], $body, $result);
|
exec($result["url"], $body, $statuscode);
|
||||||
|
$body = implode("\n", $body);
|
||||||
} else {
|
} else {
|
||||||
$rebootjobs[] = $result['jobID'];
|
$rebootjobs[] = $result['jobID'];
|
||||||
touch("cache/reboot.trigger");
|
touch("cache/reboot.trigger");
|
||||||
|
|
|
@ -77,8 +77,9 @@ foreach ($results as $result) {
|
||||||
|
|
||||||
if($result["url"] != "reboot") {
|
if($result["url"] != "reboot") {
|
||||||
$body = '';
|
$body = '';
|
||||||
$result = 0;
|
$statuscode = 0;
|
||||||
exec($result["url"], $body, $result);
|
exec($result["url"], $body, $statuscode);
|
||||||
|
$body = implode("\n", $body);
|
||||||
} else {
|
} else {
|
||||||
$rebootjobs[] = $result['jobID'];
|
$rebootjobs[] = $result['jobID'];
|
||||||
touch("cache/reboot.trigger");
|
touch("cache/reboot.trigger");
|
||||||
|
|
Loading…
Reference in New Issue