From fc4f7db66a3418a9b8f33b5b512a34dd6fe762d8 Mon Sep 17 00:00:00 2001 From: Tony Lambregts Date: Sun, 23 Jan 2005 16:59:09 +0000 Subject: [PATCH] Show the number of individual maintainers on the stats page --- include/util.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/util.php b/include/util.php index e4f74a1..6cac5a4 100644 --- a/include/util.php +++ b/include/util.php @@ -192,9 +192,8 @@ function getNumberOfVersions() /* 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 */