[Fusionforge-commits] r9551 - branches/Branch_5_0/gforge/www/project/stats

Roland Mas lolando at libremir.placard.fr.eu.org
Tue Apr 20 20:25:26 CEST 2010


Author: lolando
Date: 2010-04-20 20:25:26 +0200 (Tue, 20 Apr 2010)
New Revision: 9551

Modified:
   branches/Branch_5_0/gforge/www/project/stats/index.php
Log:
Better default values for stats to avoid empty graphs

Modified: branches/Branch_5_0/gforge/www/project/stats/index.php
===================================================================
--- branches/Branch_5_0/gforge/www/project/stats/index.php	2010-04-20 18:00:55 UTC (rev 9550)
+++ branches/Branch_5_0/gforge/www/project/stats/index.php	2010-04-20 18:25:26 UTC (rev 9551)
@@ -29,7 +29,7 @@
 }
 
 $area = getStringFromRequest('area');
-$SPAN = getIntFromRequest('SPAN');
+$SPAN = getIntFromRequest('SPAN', 1);
 $start = getIntFromRequest('start');
 $end = getIntFromRequest('end');
 
@@ -38,6 +38,9 @@
 	$z =& $report->getMonthStartArr();
 	$start = $z[count($z)-1];
 }
+if (!$end || $end <= $start) {
+        $end = time () ;
+}
 
 site_project_header(array('title'=>_('Project Activity').' '.$group->getPublicName(),'group'=>$group_id,'toptab'=>'home'));
 




More information about the Fusionforge-commits mailing list