rwoscott |
12-17-2007 12:43 AM |
Quote:
Originally Posted by rwoscott
(Post 1398719)
I found another issue with the registration stats. Not a major drama.
If you select Results = 23 , you get 23 months.
If you select Results = 25 , you get 25 months.
Correct so far.
However, if you select 24 months, you get 36 months,
If you select 36 months you get 48 months.
If you select 48 months you get 60 months. I see a pattern here
The additional 12 months have a date of 01/01/1970.
(see attached).
I assume this is related to December being the 12th month.
Any ideas?
|
I'm no php expert, but I did the following to fix this error.
In statistics.php replace
PHP Code:
$year = $year - intval(($howmany - $today['month']) / 12);
With
PHP Code:
$year = $year - intval(($howmany - $today['month'] - 1) / 12);
I've tested it for this month and it seems fine.
I've run through it on paper and I think it should work for other months. (fingers crossed) :up:
|