Fixes "Trying to get property 'status' of non-object"
parent
4674d09b29
commit
20d9884b73
|
@ -666,7 +666,7 @@ function jappixmini_cron(App $a, $d)
|
||||||
|
|
||||||
// parse answer
|
// parse answer
|
||||||
$answer = json_decode($answer_json);
|
$answer = json_decode($answer_json);
|
||||||
if ($answer->status != "ok") {
|
if (empty($answer->status) || ($answer->status != "ok")) {
|
||||||
throw new Exception();
|
throw new Exception();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue