forked from friendica/friendica-addons
Fixes "Trying to get property 'status' of non-object"
This commit is contained in:
parent
4674d09b29
commit
20d9884b73
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue