summaryrefslogtreecommitdiffstats
path: root/pkgdb-ajax.php
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2011-02-05 11:09:56 +0100
committerRemi Collet <fedora@famillecollet.com>2011-02-05 11:09:56 +0100
commitad09d023481f03b6dc835bf86f2999e40ab63b37 (patch)
tree16618319228978a42372402d5b8fa53544a97de0 /pkgdb-ajax.php
parenteb425e1bee76cb6ec7196506954229e77eea82ef (diff)
fix co-maintainer list : only approved ones
Diffstat (limited to 'pkgdb-ajax.php')
-rw-r--r--pkgdb-ajax.php17
1 files changed, 7 insertions, 10 deletions
diff --git a/pkgdb-ajax.php b/pkgdb-ajax.php
index a2b84ae..65c5724 100644
--- a/pkgdb-ajax.php
+++ b/pkgdb-ajax.php
@@ -64,18 +64,15 @@ if ( !isset($name) || !$name ) {
unset($fedpkg[$k]['package']['statuscode']);
unset($fedpkg[$k]['package']['upstreamurl']);
$people = $fedpkg[$k]['people'];
- $new_people = null;
+ $tmp = array();
foreach ( $people as $p ) {
- $new_people[] = array(
- 'username' => $p['username'],
- 'aclOrder' => array(
- 'commit' => array(
- 'statuscode' => $p['aclOrder']['commit']['statuscode']
- )
- )
- );
+ if (isset($p['aclOrder']['commit']['statuscode'])
+ && $p['aclOrder']['commit']['statuscode']==3) {
+ $tmp[] = $p['username'];
+ }
}
- $fedpkg[$k]['people'] = $new_people;
+ sort($tmp);
+ $fedpkg[$k]['people'] = implode($tmp, ', ');
$fedpkg[$k]['package']['description'] = nl2br($fedpkg[$k]['package']['description']);
}
}