[Fusionforge-commits] r10859 - in trunk/src/www: frs/reporting project/stats

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Mon Oct 4 19:25:10 CEST 2010


Author: aljeux
Date: 2010-10-04 19:25:10 +0200 (Mon, 04 Oct 2010)
New Revision: 10859

Modified:
   trunk/src/www/frs/reporting/downloads.php
   trunk/src/www/project/stats/index.php
Log:
Ensure start always before end, reorder if needed.

Modified: trunk/src/www/frs/reporting/downloads.php
===================================================================
--- trunk/src/www/frs/reporting/downloads.php	2010-10-04 17:25:05 UTC (rev 10858)
+++ trunk/src/www/frs/reporting/downloads.php	2010-10-04 17:25:10 UTC (rev 10859)
@@ -82,6 +82,7 @@
 	$z =& $report->getMonthStartArr();
 	$end = $z[ count($z)-1];
 }
+if ($end < $start) list($start, $end) = array($end, $start);
 
 frs_header(array('title'=>_('File Release Reporting'),
 		 'group'=>$group_id,

Modified: trunk/src/www/project/stats/index.php
===================================================================
--- trunk/src/www/project/stats/index.php	2010-10-04 17:25:05 UTC (rev 10858)
+++ trunk/src/www/project/stats/index.php	2010-10-04 17:25:10 UTC (rev 10859)
@@ -59,6 +59,7 @@
 	$z =& $report->getMonthStartArr();
 	$end = $z[count($z)-1];
 }
+if ($end < $start) list($start, $end) = array($end, $start);
 
 // Find a default SPAN value depending on the number of days.
 $delta=($end - $start)/24/60/60;




More information about the Fusionforge-commits mailing list