From ad09d023481f03b6dc835bf86f2999e40ab63b37 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sat, 5 Feb 2011 11:09:56 +0100 Subject: fix co-maintainer list : only approved ones --- zoom.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'zoom.php') diff --git a/zoom.php b/zoom.php index f20c730..8b00270 100644 --- a/zoom.php +++ b/zoom.php @@ -75,13 +75,16 @@ function getBranchPeople($params) $ret_tmp = $fedpkg[$branch]['people']; } } - if ( $people == 'people') { + if ( $people == 'people' && is_array($ret_tmp)) { + $tmp = array(); foreach ( $ret_tmp as $r ) { - if ( $ret !== null ) { - $ret .= ', '; + if (isset($r['aclOrder']['commit']['statuscode']) + && $r['aclOrder']['commit']['statuscode']==3) { + $tmp[] = $r['username']; } - $ret .= $r['username']; } + sort($tmp); + $ret = implode($tmp, ', '); } return $ret; } -- cgit