Fixes "Trying to get property 'status' of non-object"

This commit is contained in:
Michael 2018-12-26 11:04:29 +00:00
parent 4674d09b29
commit 20d9884b73

View File

@ -666,7 +666,7 @@ function jappixmini_cron(App $a, $d)
// parse answer
$answer = json_decode($answer_json);
if ($answer->status != "ok") {
if (empty($answer->status) || ($answer->status != "ok")) {
throw new Exception();
}