https://reisub.nsupdate.info/git
/
friendica-addons.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4674d09
)
Fixes "Trying to get property 'status' of non-object"
author
Michael
<heluecht@pirati.ca>
Wed, 26 Dec 2018 11:04:29 +0000
(11:04 +0000)
committer
Michael
<heluecht@pirati.ca>
Wed, 26 Dec 2018 11:04:29 +0000
(11:04 +0000)
jappixmini/jappixmini.php
patch
|
blob
|
history
diff --git
a/jappixmini/jappixmini.php
b/jappixmini/jappixmini.php
index
0ef56ae
..
28e238d
100644
(file)
--- 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();
}