From f4b7f2bd04cf37025e50aecdb4002b318f19096d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Nicolaysen=20S=C3=B8rnes?= Date: Sun, 13 May 2007 16:54:33 +0000 Subject: [PATCH] Don't display supermaintainers twice on maintainer processing screen. When printing the list of non-super maintainers, only print the entry if the user is not a super maintainer --- include/maintainer.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/maintainer.php b/include/maintainer.php index 4198b8a..006a19f 100644 --- a/include/maintainer.php +++ b/include/maintainer.php @@ -537,7 +537,12 @@ class maintainer while(list($index, $iUserId) = each($aOtherMaintainers)) { $oUser = new User($iUserId); - echo "$oUser->sRealname
\n"; + + // because Version::getMaintainersUserIds() includes super maintainers + // we need to exclude these from the list of maintainers that we are + // building + if(!maintainer::isUserSuperMaintainer($oUser, $oVersion->iAppId)) + echo "$oUser->sRealname
\n"; } }