This commit is contained in:
Jeroen De Meerleer 2018-09-21 15:21:58 +02:00
parent d946dba54e
commit 5e14730ada
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
1 changed files with 2 additions and 1 deletions

View File

@ -53,7 +53,8 @@ if (file_exists("cache/get-services.trigger")) {
}
}
$stmt = $db->query('SELECT jobID, url, host, delay, nextrun, expected FROM jobs WHERE nextrun <= ' . time());
$stmt = $db->prepare('SELECT jobID, url, host, delay, nextrun, expected FROM jobs WHERE nextrun <= ?');
$stmt->execute(array(time()));
$results = $stmt->fetchAll(PDO::FETCH_ASSOC);
$client = new \GuzzleHttp\Client();