Fix weirdness in Userrights and derived pages where no groups didn't appear as (none)
authorAndrew Garrett <werdna@users.mediawiki.org>
Tue, 8 Jul 2008 13:45:40 +0000 (13:45 +0000)
committerAndrew Garrett <werdna@users.mediawiki.org>
Tue, 8 Jul 2008 13:45:40 +0000 (13:45 +0000)
includes/specials/SpecialUserrights.php

index bf4d440..0dfc10a 100644 (file)
@@ -288,7 +288,7 @@ class UserrightsPage extends SpecialPage {
        }
 
        function makeGroupNameList( $ids ) {
-               return implode( ', ', $ids );
+               return (bool)count($ids) ? implode( ', ', $ids ) : wfMsg( 'rightsnone' );
        }
 
        /**