From 8f3b616d00b3ffc8d7f97d9538de1cf4af65069d Mon Sep 17 00:00:00 2001 From: kanoi Date: Sat, 7 Nov 2015 10:14:23 +1100 Subject: [PATCH] php - 1 block luck of course isn't an 'average' --- pool/page_luck.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pool/page_luck.php b/pool/page_luck.php index 9a806743..434a3e4e 100644 --- a/pool/page_luck.php +++ b/pool/page_luck.php @@ -70,7 +70,11 @@ function doluck($data, $user) $chk = ''; $pg .= ""; $pg .= ": "; - $pg .= $nams[$i-1].' Block Luck Avg'; + if ($nams[$i-1] == 1) + $avs = ''; + else + $avs = ' Avg'; + $pg .= $nams[$i-1]." Block Luck$avs"; if ($i > 1) $datacols .= ',';