Commit 80bf67c1 authored by dmorley's avatar dmorley

update to match changes for json in add

parent 0aae1f9b
......@@ -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