summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/cron/refresh_stats.php6
1 files changed, 3 insertions, 3 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`