diff --git a/runnow.php b/runnow.php index 82fdc00..0559098 100644 --- a/runnow.php +++ b/runnow.php @@ -69,7 +69,7 @@ if (filter_var($jobnameResult[0]["url"], FILTER_VALIDATE_URL)) { } } } -if($nosave !== true && $statuscode != $jobnameResult[0]["expected"]) { +if($nosave !== true) { $stmt = $db->prepare("INSERT INTO runs(job, statuscode, result, timestamp) VALUES(?, ?, ?, ?)"); $stmt->execute(array($jobID, $statuscode, $body, $timestamp)); } diff --git a/webcron.php b/webcron.php index 5b59874..fe368db 100644 --- a/webcron.php +++ b/webcron.php @@ -92,7 +92,7 @@ foreach ($results as $result) { } } - if($nosave !== true && $statuscode != $result["expected"]) { + if($nosave !== true) { $stmt = $db->prepare("INSERT INTO runs(job, statuscode, result, timestamp) VALUES(?, ?, ?, ?)"); $stmt->execute(array($result['jobID'], $statuscode, $body, time())); }