mirror of
https://github.com/friendica/friendica
synced 2024-11-10 05:42:54 +00:00
Fixes a notice and wrong counting of nodes
This commit is contained in:
parent
2b7f57453b
commit
88894511a3
1 changed files with 7 additions and 3 deletions
|
@ -664,13 +664,17 @@ function admin_page_federation(App $a)
|
|||
} while (!empty($parts) && ((strlen($part) >= 40) || (strlen($part) <= 3)));
|
||||
|
||||
if (!empty($part)) {
|
||||
$compacted[$part] += $v[$key]['total'];
|
||||
if (empty($compacted[$part])) {
|
||||
$compacted[$part] = $v[$key]['total'];
|
||||
} else {
|
||||
$compacted[$part] += $v[$key]['total'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$v = [];
|
||||
foreach ($compacted as $version => $total) {
|
||||
$v[] = ['version' => $version, 'total' => $total];
|
||||
foreach ($compacted as $version => $pl_total) {
|
||||
$v[] = ['version' => $version, 'total' => $pl_total];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue