Stringify output

This commit is contained in:
Jeroen De Meerleer 2017-05-10 11:34:42 +02:00
parent e91353c42c
commit 282c30fc23
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
2 changed files with 6 additions and 4 deletions

View File

@ -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");

View File

@ -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");