don't choke if we get a bad JSON result
This commit is contained in:
parent
0375e3977a
commit
89a287a94c
@ -153,10 +153,13 @@
|
|||||||
public function isConnected() : bool
|
public function isConnected() : bool
|
||||||
{
|
{
|
||||||
$json = $this->curl_request_json("/ping");
|
$json = $this->curl_request_json("/ping");
|
||||||
|
if (is_array($json))
|
||||||
|
{
|
||||||
if ($json["result"] == "success")
|
if ($json["result"] == "success")
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
protected function removeRelationshipInstanceInternal(string|InstanceKey|InstanceReference $sourceInstance, string|InstanceKey|InstanceReference $relationshipInstance, array|string|InstanceKey|InstanceReference $targetInstances, \DateTime|null $effectiveDate = null)
|
protected function removeRelationshipInstanceInternal(string|InstanceKey|InstanceReference $sourceInstance, string|InstanceKey|InstanceReference $relationshipInstance, array|string|InstanceKey|InstanceReference $targetInstances, \DateTime|null $effectiveDate = null)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user