Commit 4fe93e3d authored by David Morley's avatar David Morley

Merge branch 'curl-error' into 'develop'

update to match changes for json in add

See merge request !241
parents 0aae1f9b 80bf67c1
Pipeline #1623 passed with stage
in 3 minutes and 58 seconds
......@@ -116,6 +116,8 @@ foreach ($pods as $pod) {
if ($info = json_decode($nodeinfo_meta['body'] ?: '', true)) {
if (count($info['links'], COUNT_RECURSIVE) === 2) {
$nodeinfo_url = $info['links']['href'];
} elseif (count($info['links'], COUNT_RECURSIVE) === 4) {
$nodeinfo_url = $info['links'][1]['href'];
} else {
$nodeinfo_url = max($info['links'])['href'];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment