mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-25 11:43:40 +00:00
Fixes "Trying to get property 'status' of non-object"
This commit is contained in:
parent
4674d09b29
commit
20d9884b73
1 changed files with 1 additions and 1 deletions
|
@ -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