From f4d47c3cb3f968d78b52ea16c6a09a458c8db808 Mon Sep 17 00:00:00 2001 From: kanoi Date: Tue, 9 Sep 2014 08:02:49 +1000 Subject: [PATCH] php - reverse/correct the web page calculation on orphans --- pool/page_blocks.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pool/page_blocks.php b/pool/page_blocks.php index 4fda69df..c4660c54 100644 --- a/pool/page_blocks.php +++ b/pool/page_blocks.php @@ -89,9 +89,9 @@ function doblocks($data, $user) list($fg, $bg) = pctcolour($pct); $bpct = "".number_format($pct, 2).'%'; $bg = " bgcolor=$bg"; - $nettot += $netdiff; + $blktot += $diffacc; if ($stat != 'Orphan') - $blktot += $diffacc; + $nettot += $netdiff; } else {