From: Brion Vibber Date: Wed, 9 Jul 2008 01:17:41 +0000 (+0000) Subject: Cleanup r37317 -- let's make this a little more legible. :) X-Git-Tag: 1.31.0-rc.0~46621 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=302805bfd77a2816b044852c3394e664ea64b2b4;p=lhc%2Fweb%2Fwiklou.git Cleanup r37317 -- let's make this a little more legible. :) --- diff --git a/includes/specials/SpecialUserrights.php b/includes/specials/SpecialUserrights.php index 0dfc10aa87..28c9ca28a4 100644 --- a/includes/specials/SpecialUserrights.php +++ b/includes/specials/SpecialUserrights.php @@ -288,7 +288,11 @@ class UserrightsPage extends SpecialPage { } function makeGroupNameList( $ids ) { - return (bool)count($ids) ? implode( ', ', $ids ) : wfMsg( 'rightsnone' ); + if( empty( $ids ) ) { + return wfMsg( 'rightsnone' ); + } else { + return implode( ', ', $ids ); + } } /**