diff --git a/mocha-php/src/mocha-php/lib/mocha/oms/HttpOmsClient.inc.php b/mocha-php/src/mocha-php/lib/mocha/oms/HttpOmsClient.inc.php index 141397e..8850e5b 100644 --- a/mocha-php/src/mocha-php/lib/mocha/oms/HttpOmsClient.inc.php +++ b/mocha-php/src/mocha-php/lib/mocha/oms/HttpOmsClient.inc.php @@ -153,9 +153,12 @@ public function isConnected() : bool { $json = $this->curl_request_json("/ping"); - if ($json["result"] == "success") + if (is_array($json)) { - return true; + if ($json["result"] == "success") + { + return true; + } } return false; }