replaced equals by has

This commit is contained in:
Jeroen De Meerleer 2019-04-25 16:40:27 +02:00
parent 50b059cace
commit a02de31738
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
2 changed files with 2 additions and 3 deletions

View File

@ -49,8 +49,7 @@ if (filter_var($jobnameResult[0]["url"], FILTER_VALIDATE_URL)) {
$timestamp = time();
} else {
if($jobnameResult[0]["url"] != "reboot") {
if(!stristr($jobnameResult[0]["url"],"reboot")) {
$body = '';
$statuscode = 0;
$url = "ssh " . $jobnameResult[0]['host'] . " '" . $jobnameResult[0]['url'] . "' 2>&1";

View File

@ -81,7 +81,7 @@ foreach ($results as $result) {
$body = $res->getBody();
} else {
if($result["url"] != "reboot") {
if(!stristr($result["url"],"reboot")) {
$body = '';
$statuscode = 0;
$url = "ssh " . $result['host'] . " '" . $result['url'] . "' 2>&1";