[AppDB] Show the number of individual maintainers on the stats page.
tony_lambregts at telusplanet.net
tony_lambregts at telusplanet.net
Sat Jan 22 13:08:17 CST 2005
Change Log: Show the number of individual maintainers on the stats page.
Files changed: include/util.php
-------------- next part --------------
Index: include/util.php
===================================================================
RCS file: /home/wine/appdb/include/util.php,v
retrieving revision 1.19
diff -u -r1.19 util.php
--- include/util.php 19 Jan 2005 16:53:07 -0000 1.19
+++ include/util.php 22 Jan 2005 19:04:40 -0000
@@ -192,9 +192,8 @@
/* Get the number of maintainers in the database */
function getNumberOfMaintainers()
{
- $result = query_appdb("SELECT count(maintainerId ) as num_maintainers FROM appMaintainers;");
- $row = mysql_fetch_object($result);
- return $row->num_maintainers;
+ $result = query_appdb("SELECT DISTINCT userId FROM appMaintainers;");
+ return mysql_num_rows($result);
}
/* Get the number of app familes in the database */
More information about the wine-patches
mailing list