[Fusionforge-commits] r13077 - trunk/src/www/softwaremap

Franck VILLAUME nerville at fusionforge.org
Mon Apr 11 21:35:08 CEST 2011


Author: nerville
Date: 2011-04-11 21:35:08 +0200 (Mon, 11 Apr 2011)
New Revision: 13077

Modified:
   trunk/src/www/softwaremap/tag_cloud.php
Log:
fix out of range

Modified: trunk/src/www/softwaremap/tag_cloud.php
===================================================================
--- trunk/src/www/softwaremap/tag_cloud.php	2011-04-11 19:34:54 UTC (rev 13076)
+++ trunk/src/www/softwaremap/tag_cloud.php	2011-04-11 19:35:08 UTC (rev 13077)
@@ -70,8 +70,8 @@
 	$projects = array();
 	$project_ids = array();
 	while ($row_grp = db_fetch_array($res_grp)) {
-		if (!forge_check_perm ('project_read', $row_grp['group_id'])) {
-			continue ;
+		if (!forge_check_perm('project_read', $row_grp['group_id'])) {
+			continue;
 		}
 		$projects[] = $row_grp;
 		$project_ids[] = $row_grp['group_id'];
@@ -90,7 +90,7 @@
 		$html_limit .= sprintf(ngettext('<strong>%d</strong> project in result set.',
 						'<strong>%d</strong> projects in result set.',
 						$querytotalcount),
-				       $querytotalcount) ;
+						$querytotalcount);
 	}
 
 	// only display pages stuff if there is more to display
@@ -99,10 +99,10 @@
 		$html_limit .= sprintf (ngettext ('Displaying %d project per page. Projects sorted by alphabetical order.<br />',
 						  'Displaying %d projects per page. Projects sorted by alphabetical order.<br />',
 						  $TROVE_BROWSELIMIT),
-					$TROVE_BROWSELIMIT) ;
+						$TROVE_BROWSELIMIT);
 
 		// display all the numbers
-		for ($i=1;$i<=ceil($querytotalcount/$TROVE_BROWSELIMIT);$i++) {
+		for ($i=1 ;$i <= ceil($querytotalcount/$TROVE_BROWSELIMIT); $i++) {
 			$html_limit .= ' ';
 			if ($page != $i) {
 				$html_limit .= util_make_link ('/softwaremap/tag_cloud.php?tag='.$selected_tag.'&page='.$i,
@@ -118,7 +118,7 @@
 
 	// #################################################################
 	// print actual project listings
-	for ($i_proj=0;$i_proj<=$querytotalcount;$i_proj++) {
+	for ($i_proj = 0; $i_proj < $querytotalcount; $i_proj++) {
 		$row_grp = $projects[$i_proj];
 
 		// check to see if row is in page range




More information about the Fusionforge-commits mailing list