diff options
author | Remi Collet <fedora@famillecollet.com> | 2011-02-05 11:09:56 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2011-02-05 11:09:56 +0100 |
commit | ad09d023481f03b6dc835bf86f2999e40ab63b37 (patch) | |
tree | 16618319228978a42372402d5b8fa53544a97de0 /zoom.php | |
parent | eb425e1bee76cb6ec7196506954229e77eea82ef (diff) |
fix co-maintainer list : only approved ones
Diffstat (limited to 'zoom.php')
-rw-r--r-- | zoom.php | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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; } |