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;