From: Michael Date: Wed, 26 Dec 2018 11:04:29 +0000 (+0000) Subject: Fixes "Trying to get property 'status' of non-object" X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=20d9884b730964cef260249242b56e69f88720a8;p=friendica-addons.git Fixes "Trying to get property 'status' of non-object" --- diff --git a/jappixmini/jappixmini.php b/jappixmini/jappixmini.php index 0ef56aed..28e238db 100644 --- a/jappixmini/jappixmini.php +++ b/jappixmini/jappixmini.php @@ -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(); }