[evolvis-commits] r18713: fix php warning discovered by aalexa and ialexa

mirabilos at evolvis.org mirabilos at evolvis.org
Mon Oct 8 14:43:13 CEST 2012


Author: mirabilos
Date: 2012-10-08 14:43:13 +0200 (Mon, 08 Oct 2012)
New Revision: 18713

Modified:
   trunk/gforge_base/evolvisforge-5.1/src/www/search/include/renderers/ArtifactHtmlSearchRenderer.class.php
Log:
fix php warning discovered by aalexa and ialexa

XXX there’s lots of date() calls here waiting to be datepickered

Modified: trunk/gforge_base/evolvisforge-5.1/src/www/search/include/renderers/ArtifactHtmlSearchRenderer.class.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/www/search/include/renderers/ArtifactHtmlSearchRenderer.class.php	2012-10-08 12:43:09 UTC (rev 18712)
+++ trunk/gforge_base/evolvisforge-5.1/src/www/search/include/renderers/ArtifactHtmlSearchRenderer.class.php	2012-10-08 12:43:13 UTC (rev 18713)
@@ -97,8 +97,9 @@
 		$dateFormat = _('Y-m-d H:i');
 		
 		$return = '';
+		$i = 0;
 		foreach ($fd as $row) {
-			$return .= '<tr '. $GLOBALS['HTML']->boxGetAltRowStyle($i) .'>'
+			$return .= '<tr '. $GLOBALS['HTML']->boxGetAltRowStyle($i++) .'>'
 				.'<td>'.$row['artifact_id'].'</td>'
 				.'<td><a href="'.util_make_url ('/tracker/?group_id='.$groupId.'&atid=' . $row['group_artifact_id'] . '&func=detail&aid=' . $row['artifact_id']).'"> '
 				. html_image('ic/tracker20g.png')



More information about the evolvis-commits mailing list