From 9af902f8b72be6c5008b220882e9cf7708b2928b Mon Sep 17 00:00:00 2001 From: kanoi Date: Thu, 13 Aug 2015 13:00:01 +1000 Subject: [PATCH] php - blocks N counter should be pre-incremented --- 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 70fa163e..95bef302 100644 --- a/pool/page_blocks.php +++ b/pool/page_blocks.php @@ -179,7 +179,7 @@ function doblocks($data, $user) $blktot = 0; $nettot = 0; $i = 0; - $cnt = 1; + $cnt = 0; $orph = false; $csv = "Sequence,Height,Status,Timestamp,DiffAcc,NetDiff,Hash\n"; if ($ans['STATUS'] == 'ok') @@ -230,7 +230,7 @@ function doblocks($data, $user) else { $seq = $ans['seq:'.$i]; - $nn = $cnt++; + $nn = ++$cnt; } if ($conf == '1') {