diff --git a/web/application/controllers/service.php b/web/application/controllers/service.php index 1529a86..6484ffe 100644 --- a/web/application/controllers/service.php +++ b/web/application/controllers/service.php @@ -27,6 +27,10 @@ class service extends base { /** @var \application\models\Jobs $job */ $job = \application\models\Jobs::getByField("id", $jobId)[0]; + if (!$job) { + echo ""; + return; + } //decrypt message $data = json_decode($_POST["data"], true); $rawMessage = aes_decrypt($job->sharedkey, $data["message"]);