forked from friendica/friendica-directory
Fix server polling error when body was unexpected JSON
This commit is contained in:
parent
31156b8643
commit
fadb733527
|
@ -85,7 +85,7 @@ class Server
|
||||||
|
|
||||||
$probe_result = $this->getProbeResult($polled_url);
|
$probe_result = $this->getProbeResult($polled_url);
|
||||||
|
|
||||||
$parse_success = !empty($probe_result['data']);
|
$parse_success = !empty($probe_result['data']['url']);
|
||||||
|
|
||||||
if ($parse_success) {
|
if ($parse_success) {
|
||||||
$base_url = $probe_result['data']['url'];
|
$base_url = $probe_result['data']['url'];
|
||||||
|
|
Loading…
Reference in a new issue