Solves PHP warning "Use of undefined constant" #785

Merged
annando merged 2 commits from issue-5911 into 2018.12-rc 2018-12-26 15:51:01 +01:00
Showing only changes of commit 20d9884b73 - Show all commits

View file

@ -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();
}