[Fusionforge-commits] r8555 - trunk/gforge/common/include

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Thu Dec 17 18:41:04 CET 2009


Author: aljeux
Date: 2009-12-17 18:41:04 +0100 (Thu, 17 Dec 2009)
New Revision: 8555

Modified:
   trunk/gforge/common/include/tag_cloud.php
Log:
Full list of tags in nb_max is 0

Modified: trunk/gforge/common/include/tag_cloud.php
===================================================================
--- trunk/gforge/common/include/tag_cloud.php	2009-12-17 17:40:58 UTC (rev 8554)
+++ trunk/gforge/common/include/tag_cloud.php	2009-12-17 17:41:04 UTC (rev 8555)
@@ -113,7 +113,7 @@
 			$tag_count[$row['name']] = $row['count'];
 			if ($count_min == 0 || $row['count'] < $count_min) $count_min = $row['count'];
 			if ($row['count'] > $count_max) $count_max = $row['count'];
-			if ($nb >= $params['nb_max']) break;
+			if ($params['nb_max'] && $nb >= $params['nb_max']) break; // no limit if nb_max == 0
 			$nb++;
 		}
 




More information about the Fusionforge-commits mailing list