Update of /cvsroot/blackboxwm/website/tavi/parse
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv10208/tavi/parse
Modified Files:
macros.php
Log Message:
Bugfix: counter adjust ratio can be float, do not cast to int.
Index: macros.php
===================================================================
RCS file: /cvsroot/blackboxwm/website/tavi/parse/macros.php,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** macros.php 8 Jun 2006 07:50:17 -0000 1.17
--- macros.php 8 Jun 2006 07:56:27 -0000 1.18
***************
*** 131,135 ****
$CounterStartTS = strtotime($CounterStart);
$CounterDays = (int)((time()-$CounterStartTS)/(60*60*24)+1);
! $CounterAdjustRatio = abs((int)$CounterAdjustRatio);
// init
--- 131,135 ----
$CounterStartTS = strtotime($CounterStart);
$CounterDays = (int)((time()-$CounterStartTS)/(60*60*24)+1);
! $CounterAdjustRatio = abs((float)$CounterAdjustRatio);
// init
|