Jaroontjah, good busy

This commit is contained in:
Jeroen De Meerleer 2017-05-10 11:03:24 +02:00
parent 606226b1c4
commit e91353c42c
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ if ($jobnameResult[0]["user"] != $_SESSION["userID"]) {
die(json_encode(array("error" => "You dirty hacker!")));
}
$nosave = false;
if (filter_var($result["type"], FILTER_VALIDATE_URL)) {
if (filter_var($result["url"], FILTER_VALIDATE_URL)) {
$client = new \GuzzleHttp\Client();
$res = $client->request('GET', $jobnameResult[0]['url']);

View File

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