From 706b60ecc7e575b4eea4e9ef7f24cf76119758e1 Mon Sep 17 00:00:00 2001 From: kanoi Date: Sun, 7 Feb 2016 23:49:26 +1100 Subject: [PATCH] php - don't colour orphans or rejects on the blocks page --- pool/page_blocks.php | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/pool/page_blocks.php b/pool/page_blocks.php index f74a2ece..0b9bd101 100644 --- a/pool/page_blocks.php +++ b/pool/page_blocks.php @@ -277,9 +277,17 @@ function doblocks($data, $user) if ($diffratio > 0) { $pct = 100.0 * $diffratio; - list($fg, $bg) = pctcolour($pct); - $bpct = "$approx".number_format($pct, 3).'%'; - $bg = " bgcolor=$bg"; + if ($conf != 'O' and $conf != 'R') + { + list($fg, $bg) = pctcolour($pct); + $bpct = "$approx".number_format($pct, 3).'%'; + $bg = " bgcolor=$bg"; + } + else + { + $bpct = "$approx".number_format($pct, 3).'%'; + $bg = ''; + } $blktot += $diffacc; if ($conf != 'O' and $conf != 'R') $nettot += $netdiff;