summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorINOPIAE <inopiae@cacert.org>2015-01-25 07:57:04 +0100
committerINOPIAE <inopiae@cacert.org>2015-01-25 07:57:04 +0100
commitbfd26f2c7a7ba2af64e46cefd7da141d07d5288f (patch)
tree8f65bbe2e8541521d66b286e4fd918d63a35e6f6
parent0ee9c78f30399241b18f7fa3db52ffa91e7a7c2b (diff)
downloadcacert-devel-bfd26f2c7a7ba2af64e46cefd7da141d07d5288f.tar.gz
cacert-devel-bfd26f2c7a7ba2af64e46cefd7da141d07d5288f.tar.xz
cacert-devel-bfd26f2c7a7ba2af64e46cefd7da141d07d5288f.zip
bug 1357: small correction for assurer calculation
-rwxr-xr-xscripts/cron/refresh_stats.php6
-rw-r--r--www/stats.php2
2 files changed, 4 insertions, 4 deletions
diff --git a/scripts/cron/refresh_stats.php b/scripts/cron/refresh_stats.php
index 006ac6d..4f18b0b 100755
--- a/scripts/cron/refresh_stats.php
+++ b/scripts/cron/refresh_stats.php
@@ -138,10 +138,10 @@ function getDataFromLive() {
$startdate = date("Y-m-d", mktime(0, 0, 0, 1, 1, 2002));
$enddate = date("Y-m-d", mktime(0, 0, 0, 1, 1, date("Y") + 1));
- $stats['assurers_with_test'] = number_format(assurer_count($startdate, $enddate,1));
-
- $stats['assurer_candidates'] = number_format(assurer_count($startdate, $enddate,0) - $stats['assurers_with_test']);
+ $assurercount= assurer_count($startdate, $enddate,1);
+ $stats['assurer_with_test'] = number_format($assurercount);
+ $stats['assurer_candidates'] = number_format(assurer_count($startdate, $enddate,0) - $assurercount);
$stats['points_issued'] = number_format(tc(
"select sum(greatest(`points`, `awarded`)) as `count` from `notary`
diff --git a/www/stats.php b/www/stats.php
index 1188f4e..f777f38 100644
--- a/www/stats.php
+++ b/www/stats.php
@@ -87,7 +87,7 @@
</tr>
<tr>
<td class="DataTD"><?=_("Assurers with test")?>:</td>
- <td class="DataTD"><?=$stats['assurers_with_test'];?></td>
+ <td class="DataTD"><?=$stats['assurer_with_test'];?></td>
</tr>
<tr>
<td class="DataTD"><?=_("Points Issued")?>:</td>