Merge pull request #6196 from annando/notices
Fixes a notice and wrong counting of nodes
This commit is contained in:
commit
f001a830ee
|
@ -664,13 +664,17 @@ function admin_page_federation(App $a)
|
||||||
} while (!empty($parts) && ((strlen($part) >= 40) || (strlen($part) <= 3)));
|
} while (!empty($parts) && ((strlen($part) >= 40) || (strlen($part) <= 3)));
|
||||||
|
|
||||||
if (!empty($part)) {
|
if (!empty($part)) {
|
||||||
|
if (empty($compacted[$part])) {
|
||||||
|
$compacted[$part] = $v[$key]['total'];
|
||||||
|
} else {
|
||||||
$compacted[$part] += $v[$key]['total'];
|
$compacted[$part] += $v[$key]['total'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$v = [];
|
$v = [];
|
||||||
foreach ($compacted as $version => $total) {
|
foreach ($compacted as $version => $pl_total) {
|
||||||
$v[] = ['version' => $version, 'total' => $total];
|
$v[] = ['version' => $version, 'total' => $pl_total];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue